Java Mailing List Archive

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

Home » modperl.perl »

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

Geoffrey Young

2008-07-04

Replies: Find Java Web Hosting

Author LoginPost Reply


Mark Hedges wrote:
> On Thu, 3 Jul 2008, Fred Moyer wrote:
>>> I've been getting cpan-testers results like this. What
>>> should I do? Thanks... --m--
>> See sub test in:
>>
>> http://search.cpan.org/src/PHRED/Apache-Dispatch-0.10/Makefile.PL
>
> Wouldn't that Makefile.PL die if mod_perl is not installed,
> instead of requiring all libs and then running the tests
> with them when they are followed by the CPAN user?
>
> Don't I want it to prompt CPAN to follow dependencies? But
> if I override &test in this way, how then do I run the tests
> that need to be run once `make` has begun?
>
> Aha, if I use ModPerl::MM then directives will work, nice.
> Thanks!

not all things wanting to use Apache::Test have access to (or want)
mod_perl - Apache-Test is its own distribution on CPAN, so you might not
have ModPerl::MM

>
>> In short, you override the test target in the Makefile.
>> I can't take credit for that code as I stole most of it
>> from Geoff's modules :)
>
> Weird with the package namespace and MY:: and whatnot.

welcome to ExtUtils::MakeMaker

> But
> maybe it should just die if it can't require ModPerl::MM. If
> you haven't installed mod_perl and you can't figure out what
> to do next, maybe you shouldn't install this module.

if mod_perl is a requirement, yes.

>
>> I'm trying to abstract a bunch of this dirty work out in
>> Apache::Bootstrap, but that is primarily geared at dual
>> life mp1/mp2 modules, so I don't know how this conditional
>> test code will fit in.
>
> Sounds like a headache! Yeah I have decided I am too lazy to
> live in the past while simultaneously trying to keep up.
> :-)

this is a Makefile.PL for an Apache-Test-based test suite where mod_perl
is not required.

http://search.cpan.org/src/GEOFF/WebService-CaptchasDotNet-0.06/Makefile.PL

HTH

--Geoff
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.