httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: Apache::TestRequest Doc Patch
Date Fri, 18 Jul 2003 16:03:02 GMT

>> I thought I've answered this question already:
>> http://marc.theaimsgroup.com/?l=apache-test-dev&m=105772914901179&w=2
> 
> 
> Right, so you did. I would just argue that it should default to the 
> distribution root, but I won't push it. I'm adding this to my Makefile.PL:
> 
>     use FindBin;
>     push @ARGV, '-serverroot', $FindBin::Bin;

Alternatively you can do this from t/TEST.PL:

   $Apache::TestConfig::Argv{'-serverroot'} = catdir $FindBin::Bin, "..";

> Most CPAN module maintainers will want to know about this, I expect. 
> I'll supply a doc patch with this information later today.

The main reason that the default docroot is t/ is because things like logs/, 
conf/, etc are conveniently placed under t/. I'm not quite sure why do you 
think that most people will want to have the ../t as the serverroot. The only 
drawback of using t/ is in the need to adjust @INC, to include ../t.



__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Mime
View raw message