Subject: | when build_type is "build", does not run tests in same way as Module::Build |
Test::Nightly runs tests by directly invoking the test script
(in Test::Nightly::Test)
# Run the test, grab the output.
my $output = `$perl $test 2>&1`;
This differs from the behaviour one gets when running the tests by hand with
perl Build test
in that command-line switches on the shebang line are honoured, even
though when running via eg
./Build test --verbose 1 --test_files t/pod.t
they would not be. This can lead Test::Nightly to report errors, when in
fact both
perl Build test
perl Build disttest
pass.
mark:~/devarea/justice/modules/GE-Justice-Data$ ./Build test --verbose 1
--test_files t/pod.t
t/pod....1..6
ok 1 - blib/lib/GE/Justice/Data.pm
ok 2 - blib/lib/GE/Justice/Data.pod
ok 3 - blib/lib/GE/Justice/Data/ProcedureNumber.pm
ok 4 - blib/lib/GE/Justice/Data/GenericNumber.pm
ok 5 - blib/lib/GE/Justice/Data/DecisionNumber.pm
ok 6 - blib/lib/GE/Justice/Data/Motifs.pm
ok
All tests successful.
Files=1, Tests=6, 0 wallclock secs ( 0.09 cusr + 0.01 csys = 0.10 CPU)
mark:~/devarea/justice/modules/GE-Justice-Data$ perl t/pod.t
"-T" is on the #! line, it must also be used on the command line at
t/pod.t line 1.
Would it be possible for the actual testing (at least when build_type =>
"build") to be carried out using Build and not by running the test
script directly?
regards,
Mark