Subject: | Please tweak test => {TESTS => ...} to allow TESTS => undef |
I'd like to be able to have a t/ directory with subtests in it, and a
test.pl that runs them. This means not auto-magically running the
contents of t/ with test_harness. This doesn't work, though, because of
this sort of code in MM_Unix.pm:
my($self, %attribs) = @_;
my $tests = $attribs{TESTS} || '';
if (!$tests && -d 't') {
$tests = $self->find_tests;
}
I can't usefully say "test => {TESTS => undef}", and "test => {TESTS =>
' '}" (for example) creates a rule in the Makefile that attempts to run
no tests, which produces a test_harness error. Of course, I don't *want*
to run test_harness anyway. There should be only the rule that runs
test.pl (and not from test_harness).
Unless I'm missing something, the fix for me is to use a different
directory than t/. But I don't know of a way to do that currently with
MakeMaker. It's entirely possible that I *am* missing something, because
I don't use MakeMaker that often.
Thanks,
-joseph