httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gavin Carr <ga...@openfusion.com.au>
Subject Re: Apache2 / mod_perl1 confusion
Date Tue, 25 Jan 2005 09:57:37 GMT
On Mon, Jan 24, 2005 at 11:40:10AM -0500, Geoffrey Young wrote:
> > Since this is a C module I'm actually just using a static TEST like this:
> > 
> >   #!/usr/bin/perl
> >   use strict;
> >   use warnings FATAL => 'all';
> >   use Apache::TestRunPerl;
> >   Apache::TestRunPerl->new->run(@ARGV);
> 
> since it's just a C module and you don't need mod_perl you should change
> that Apache::TestRunPerl to just Apache::TestRun.  that should make A-T use
> the inherited mod_perl from httpd.conf instead of hunting around for it.

Beautiful - all fixed! Thanks very much for the pointer.

> you should check out the code from the tutorial I gave at ApacheCon.  the
> code is here
> 
> http://www.modperlcookbook.org/~geoff/slides/ApacheCon/2004/test-driven-development-code.tar.gz
> 
> and the tutorial slides are here
> 
> http://www.modperlcookbook.org/~geoff/slides/ApacheCon/2004/test-driven-development.pdf
> 
> pay particular attention to mod_example_ipc-install in the code tarball.
> basically, put your C module in c-modules following the pattern you'll see
> there (filenames and directory names and declarations are important).  then
> let Perl manage t/TEST and the Makefile for you using makefile.

Had a quick browse and some of it looks pretty cool - I'll have a play when
I get the chance. 

Thanks very much for your help with this Geoff. All the best!

Cheers,
Gavin


Mime
View raw message