You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Joe Schaefer <jo...@sunstarsys.com> on 2003/04/05 21:04:38 UTC

changing tests from test -> Test

I've got most of our tests ported from Apache::test
to Apache::Test now (haven't committed the changes 
yet tho).  However, since neither Apache::Test nor 
Bundle::ApacheTest seem to be available through CPAN,
I'm leaning toward including httpd-test's

  httpd-test/perl-framework/Apache-Test

directory inside our distribution (IIRC, that's
how Stas' original tests worked). 

However, I *think* this would require that:

  1) mod_so would need to be compiled into httpd.

  2) users would need to know where their "apxs"
     executable was located, unless our Makefile.PL 
     can be made smart enough to locate it for them.

I may be wrong about most/all of the above, so please 
comment & correct my errors.

Thanks, folks.
-- 
Joe Schaefer

Re: changing tests from test -> Test

Posted by Stas Bekman <st...@stason.org>.
BTW, I suggest to bundle Apache::Test only in the candidates and hopefully 
Apache::Test will be on CPAN by the time you put the new release.

If you decide to keep it bundled, there is an issue with dual-life CPAN 
packages which will create a lot of problems. You have to hide the bundled 
modules from the CPAN indexer, for example by putting them in the special 
directory "/inc". Soon there will be a new solution for this problem. (for 
various definitions of 'soon'.

> btw- the apreq-2 core (current cvs) compiles on my redhat 8.0 box, so we 
> can also get down to the business of implementing apreq-2 environments now.

Sounds great!!! People want Apache::Request 2.0 badly.

__________________________________________________________________
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


Re: changing tests from test -> Test

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Stas Bekman <st...@stason.org> writes:

[...]

> on win32 there is no apxs, so please add the option of running:
> 
> % perl Makefile.PL -httpd /path/to/apache/bin/httpd

OK..

> > You might need to make Apache::Test in httpd-test/perl-framework
> > first, but I'm not certain about that.
> 
> If you add Apache-Test/lib to @INC, you don't have to build it. It's all pure
> perl.

Nice.

> >>However, I *think* this would require that:
> >>
> >>  1) mod_so would need to be compiled into httpd.
> 
> why?

Sorry, my mistake: mod_so isn't even relevant here.  I was
confusing the requirements of the apache2 tests in 
httpd-test/perl-framework.  Thanks for the clarification.

[...]

> > Still not sure about how to proceed here.  I'd like to
> > bundle a release candidate for 1.2 and put it on CPAN
> > ASAP to see what new problems crop up.
> 
> Soon, Apache::Test (1-2 weeks I think) will be released on CPAN. Also
> I'll be releasing tools for making easier to write Makefile.PL's
> detection code. But for now this is good enough.

Great!  Thanks again, Stas.

btw- the apreq-2 core (current cvs) compiles on my redhat 8.0 box, so we 
can also get down to the business of implementing apreq-2 environments now.

-- 
Joe Schaefer

Re: changing tests from test -> Test

Posted by Stas Bekman <st...@stason.org>.
Joe Schaefer wrote:
> Joe Schaefer <jo...@sunstarsys.com> writes:
> 
> 
>>I've got most of our tests ported from Apache::test
>>to Apache::Test now (haven't committed the changes 
>>yet tho).  However, since neither Apache::Test nor 
>>Bundle::ApacheTest seem to be available through CPAN,
>>I'm leaning toward including httpd-test's
>>
>>  httpd-test/perl-framework/Apache-Test
>>
>>directory inside our distribution (IIRC, that's
>>how Stas' original tests worked). 
> 
> 
> I just committed the changes.  To run the test suite,
> checkout a fresh cvs version of httpd-apreq *and* httpd-test
> and do:
> 
>   % cd httpd-apreq
>   % ln -s /path/to/httpd-test/perl-framework/Apache-Test Apache-Test
>   % perl Makefile.PL -apxs /path/to/apache/bin/apxs
>   % make && make test

on win32 there is no apxs, so please add the option of running:

% perl Makefile.PL -httpd /path/to/apache/bin/httpd

> You might need to make Apache::Test in httpd-test/perl-framework
> first, but I'm not certain about that.

If you add Apache-Test/lib to @INC, you don't have to build it. It's all pure 
perl.

>>However, I *think* this would require that:
>>
>>  1) mod_so would need to be compiled into httpd.

why?

>>  2) users would need to know where their "apxs"
>>     executable was located, unless our Makefile.PL 
>>     can be made smart enough to locate it for them.

This works for mod_perl 2.0. For 1.0 it's not quite possible.

>>I may be wrong about most/all of the above, so please 
>>comment & correct my errors.
> 
> 
> Still not sure about how to proceed here.  I'd like to
> bundle a release candidate for 1.2 and put it on CPAN
> ASAP to see what new problems crop up.

Soon, Apache::Test (1-2 weeks I think) will be released on CPAN. Also I'll be 
releasing tools for making easier to write Makefile.PL's detection code. But 
for now this is good enough.


__________________________________________________________________
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


Re: changing tests from test -> Test

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Joe Schaefer <jo...@sunstarsys.com> writes:

> I've got most of our tests ported from Apache::test
> to Apache::Test now (haven't committed the changes 
> yet tho).  However, since neither Apache::Test nor 
> Bundle::ApacheTest seem to be available through CPAN,
> I'm leaning toward including httpd-test's
> 
>   httpd-test/perl-framework/Apache-Test
> 
> directory inside our distribution (IIRC, that's
> how Stas' original tests worked). 

I just committed the changes.  To run the test suite,
checkout a fresh cvs version of httpd-apreq *and* httpd-test
and do:

  % cd httpd-apreq
  % ln -s /path/to/httpd-test/perl-framework/Apache-Test Apache-Test
  % perl Makefile.PL -apxs /path/to/apache/bin/apxs
  % make && make test

You might need to make Apache::Test in httpd-test/perl-framework
first, but I'm not certain about that.

> However, I *think* this would require that:
> 
>   1) mod_so would need to be compiled into httpd.
> 
>   2) users would need to know where their "apxs"
>      executable was located, unless our Makefile.PL 
>      can be made smart enough to locate it for them.
> 
> I may be wrong about most/all of the above, so please 
> comment & correct my errors.

Still not sure about how to proceed here.  I'd like to
bundle a release candidate for 1.2 and put it on CPAN
ASAP to see what new problems crop up.

Thanks again.
-- 
Joe Schaefer