Subject: | tests should skip if DBI_DATA_SOURCE is not set ... |
tests should skip if DBI_DATA_SOURCE is not set
also,
'test' => {TESTS => 't/[0-9][0-9]-*/[0-9][0-9]*.t'},
is not likely to work on many platforms
You could use perl's glob
'test' => {TESTS => join ' ', glob 't/[0-9][0-9]-*/[0-9][0-9]*.t'},
but that's not likely to work everywhere either (argv limit)
so it's best to do it in perl.
Simply omit the 'test' argument to WriteMakefile,
and write a test.pl like
Show quoted text
cat>test.pl
use ExtUtils::Command::MM;
@ARGV = join ' ', glob 't/[0-9][0-9]-*/[0-9][0-9]*.t';
test_harness( $ENV{TEST_VERBOSE} || 0, 'blib\lib', 'blib\arch');
which should behave appropriately.