Torsten Foertsch wrote:
Hi,
I am a bit confused about what MakeMaker is best to use with mp2 modules.
There is the good old ExtUtils::MakeMaker that is mentioned in
http://perl.apache.org/docs/general/testing/testing.html. How I got there I
don't remember but I have used in all my modules ModPerl::MM. Is that right?
Or should I rather port them to use the former?
ModPerl::MM is the way to go. I suspect you can get away with
ExtUtils::MakeMaker as log as you're not using XS, but I honestly can't
recall what additional magic ModPerl::MM adds. it could be substantial :)
I am asking because I have had FAIL reports from CPAN testers that don't
install ModPerl::MM. The way around these reports is using
BEGIN {
eval {
require ModPerl::MM;
require Apache::TestMM;
};
if( $@ ) {
warn $@;
exit 0;
}
Apache::TestMM->import( qw(test clean) );
}
instead of
use ModPerl::MM ();
use Apache::TestMM qw(test clean);
This way no Makefile is written and the automatic test suite is happy.
yeah, that's the way you'll need to do it... if you care about those
reports :)
you can probably assume that if the user has ModPerl::MM that
Apache-Test is available.
--Geoff