Skip Menu |

This queue is for tickets about the SQL-Schema CPAN distribution.

Report information
The Basics
Id: 3055
Status: new
Priority: 0/
Queue: SQL-Schema

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



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.
Whoops Show quoted text
> use ExtUtils::Command::MM; > @ARGV = join ' ', glob 't/[0-9][0-9]-*/[0-9][0-9]*.t';
should be @ARGV = glob 't/[0-9][0-9]-*/[0-9][0-9]*.t';