Re: CPAN tests fail Makefile.PL using Apache::TestMM
by Torsten Foertsch other posts by this author
Jul 4 2008 1:20AM messages near this date
CPAN tests fail Makefile.PL using Apache::TestMM
|
Re: CPAN tests fail Makefile.PL using Apache::TestMM
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@gmx.net
Thread:
Mark Hedges
Torsten Foertsch
Mark Hedges
Fred Moyer
Mark Hedges
Geoffrey Young
|