ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-mod_perl
perl-mod_perl
Re: CPAN tests fail Makefile.PL using Apache::TestMM
by Geoffrey Young other posts by this author
Jul 4 2008 6:17AM messages near this date
Re: CPAN tests fail Makefile.PL using Apache::TestMM | secure media files without http_referer
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
Thread:
Mark Hedges
Torsten Foertsch
Mark Hedges
Fred Moyer
Mark Hedges
Geoffrey Young

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved