Subject: | Can't list Test::LectroTest as dependency in Makefile.PL |
I'm using Test::LectroTest version 0.3200 on 5.8.6 / linux 2.6.11.
If I list Test::LectroTest as a dependency in my Makefile.PL, I get the following error message:
---
Writing Makefile for Math::SymbolicX::Statistics::Distributions
Can't call method "run_suite" on an undefined value at /usr/lib/perl5/site_perl/5.8.6/Test/LectroTest.pm line 175.
END failed--call queue aborted.
---
The Makefile.PL is pretty standard:
---
use 5.006;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
NAME => 'Math::SymbolicX::Statistics::Distributions',
VERSION_FROM => 'lib/Math/SymbolicX/Statistics/Distributions.pm',
PREREQ_PM => {
'Math::Symbolic' => '0.128',
'Math::SymbolicX::ParserExtensionFactory' => '0.01',
# stupid module doing magic at compile time:
#'Test::LectroTest' => '0',
}, # e.g., Module::Name => 1.1
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/Math/SymbolicX/Statistics/Distributions.pm', # retrieve abstract from module
AUTHOR => 'Steffen Mueller <symbolic-module at steffen-mueller dot net>') : ()),
);
---
The offending code is probably (from the module source):
---
END {
my $failed = Test::LectroTest::run();
$? = $failed > 254 ? 254 : $failed;
}
---
Thanks for the good work on that module. It's fun to write tests now!
Best regards,
Steffen Müller