This calculates the number of tests when some modules are unavailable,
instead of it having to be specified each time there is a change.
++$TNUM; print "ok $TNUM # skip $reason\n";
}
++$TNUM; print "ok $TNUM # skip $reason\n";
}
# Force Data::Dumper::Dump to use perl. We test Dumpxs explicitly by calling
# it direct. Out here it lets us knobble the next if to test that the perl
# only tests do work (and count correctly)
$Data::Dumper::Useperl = 1;
if (defined &Data::Dumper::Dumpxs) {
print "### XS extension loaded, will run XS tests\n";
# Force Data::Dumper::Dump to use perl. We test Dumpxs explicitly by calling
# it direct. Out here it lets us knobble the next if to test that the perl
# only tests do work (and count correctly)
$Data::Dumper::Useperl = 1;
if (defined &Data::Dumper::Dumpxs) {
print "### XS extension loaded, will run XS tests\n";
}
else {
print "### XS extensions not loaded, will NOT run XS tests\n";
}
else {
print "### XS extensions not loaded, will NOT run XS tests\n";