Apache::Test not finding global config file

2005-08-25 Thread William McKee
Hey folks, I'm having a bit of a struggle with Apache::Test on a Mandriva Linux 10.1 server. I'm using A::T v1.26 with Apache2.0.50 + mod_perl2.0.1. For some reason, the configuration process is not finding the global config file which causes my tests which are working under a Debian workstation t

Re: Apache::Test not finding global config file

2005-08-25 Thread Philip M. Gollucci
\William McKee wrote: I've looked through the Apache::TestConfig.pm file to try to find where the problem may be but cannot figure out where that module obtains the configuration file or how to dump out the configuration file it is automatically finding. ~/.apache-test/TestConfigData.pm, then @I

Re: Apache::Test not finding global config file

2005-08-25 Thread William McKee
On Thu, Aug 25, 2005 at 04:04:13PM -0400, Philip M. Gollucci wrote: > >I've looked through the Apache::TestConfig.pm file to try to find where > >the problem may be but cannot figure out where that module obtains the > >configuration file or how to dump out the configuration file it is > >automatic

Re: Apache::Test not finding global config file

2005-08-25 Thread William McKee
I was able to get a trace from a failing case after using './Build && t/TEST'. Calling just 't/TEST' finds the config file correctly. So it appears that calling ./Build is where the trouble occurs for me (though I've never seen this behavior before). From the trace below, you can see that A::T thin

Re: Apache::Test not finding global config file

2005-08-25 Thread Philip M. Gollucci
William McKee wrote: I was able to get a trace from a failing case after using './Build && t/TEST'. Calling just 't/TEST' finds the config file correctly. So it appears that calling ./Build is where the trouble occurs for me (though I've never seen this behavior before). From the trace below, you

Re: Apache::Test not finding global config file

2005-08-25 Thread Philip M. Gollucci
William McKee wrote: I was able to get a trace from a failing case after using './Build && t/TEST'. Calling just 't/TEST' finds the config file correctly. So it appears that calling ./Build is where the trouble occurs for me (though I've never seen this behavior before). From the trace below, you

Re: Apache::Test not finding global config file

2005-08-31 Thread William McKee
On Thu, Aug 25, 2005 at 06:59:56PM -0400, Philip M. Gollucci wrote: > To answer your original quesiton, > you want: > in A-T source, Thanks for the reference. Some further investigating showed that calling t/TEST -clean is when I lose the -httpd_config setting which explains why `./Build test` is

Re: Apache::Test not finding global config file

2005-08-31 Thread William McKee
On Thu, Aug 25, 2005 at 06:56:57PM -0400, Philip M. Gollucci wrote: > >From the trace below, you can see that A::T thinks the config file is > >'/usr/conf/httpd2.conf': > > [ debug] isolated httpd_defines HTTPD_ROOT = /etc/httpd/2.0 > > [ debug] isolated httpd_defines SERVER_CONFIG_FILE = con

Re: Apache::Test not finding global config file

2005-08-31 Thread Geoffrey Young
> I want it to find /etc/httpd/2.0/conf/httpd2.conf but it is finding: > > [ debug] isolated httpd_defines HTTPD_ROOT = /etc/httpd/2.0 > [ debug] isolated httpd_defines SERVER_CONFIG_FILE = conf/httpd2.conf > [ debug] inheriting config file: /usr/conf/httpd2.conf > > I'd love to figure out wh

Re: Apache::Test not finding global config file

2005-08-31 Thread William McKee
On Wed, Aug 31, 2005 at 11:54:57AM -0400, Geoffrey Young wrote: > $self->{httpd_basedir}, which looks to be calculated based on the location > of the httpd binary. but it looks like it ought to be using HTTPD_ROOT > instead. at least if it's defined. > > try this (completely untested) Perfect!

Re: Apache::Test not finding global config file

2005-08-31 Thread Geoffrey Young
William McKee wrote: > On Wed, Aug 31, 2005 at 11:54:57AM -0400, Geoffrey Young wrote: > >>$self->{httpd_basedir}, which looks to be calculated based on the location >>of the httpd binary. but it looks like it ought to be using HTTPD_ROOT >>instead. at least if it's defined. >> >>try this (com

Re: Apache::Test not finding global config file

2005-09-02 Thread Geoffrey Young
William McKee wrote: > On Wed, Aug 31, 2005 at 11:54:57AM -0400, Geoffrey Young wrote: > >>$self->{httpd_basedir}, which looks to be calculated based on the location >>of the httpd binary. but it looks like it ought to be using HTTPD_ROOT >>instead. at least if it's defined. >> >>try this (com

Re: Apache::Test not finding global config file

2005-09-02 Thread Geoffrey Young
> I've been thinking a bit about this and I think the attached is a better > patch. ugh, wrong patch. sorry --Geoff Index: lib/Apache/TestConfigParse.pm === --- lib/Apache/TestConfigParse.pm (revision 267203) +++ lib/Apache/TestCon

Re: Apache::Test not finding global config file

2005-09-06 Thread William McKee
On Wed, Aug 31, 2005 at 06:19:10PM -0400, Geoffrey Young wrote: > if you can do me the favor of trying a few different configuration scenarios > (including 1.3, non-apxs, /usr/local/apache, etc) and making sure nothing > breaks, that would be great. the box where my matrix used to live had a > har

Re: Apache::Test not finding global config file

2005-09-07 Thread Geoffrey Young
> I removed your original patch and added this one then tested it under > the two systems above. Looks good. committed. --Geoff