Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

Re: CPAN tests fail Makefile.PL using Apache::TestMM

Torsten Foertsch

2008-07-04

Replies: Find Java Web Hosting

Author LoginPost Reply
On Fri 04 Jul 2008, Mark Hedges wrote:
> How am I supposed to tell CPAN that the distribution
> requires Apache::TestMM when Makefile.PL uses it before
> `make` is even executed?

You mustn't die that means return an OK result (exit 0). But you mustn't
create a Makefile. I do that this way:

BEGIN {
eval {
  require ModPerl::MM;
  require Apache::TestMM;
};
if( $@ ) {
  exit 0;
}
Apache::TestMM->import( qw(test clean) );
}

# accept the configs from command line
Apache::TestMM::filter_args();
...

It is documented, see http://cpantest.grango.org/wiki/CPANAuthorNotes. Look
for "How can I stop getting FAIL reports for missing libraries or other
non-Perl dependencies?"

Torsten

--
Need professional mod_perl support?
Just hire me: torsten.foertsch@(protected)
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.