You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Stas Bekman <st...@stason.org> on 2004/02/24 01:53:48 UTC

[ANNOUNCE] Apache::Test 1.08 RC1

We would like to release Apache::Test 1.08. It includes multiple changes and 
improvements, therefore we need your help to test it and report any problems 
you may have noticed.

http://apache.org/~stas/Apache-Test-1.08-dev.tar.gz

Thanks.

Changes so far:

Instead of hard-coding listen directive to 127.0.0.1, use the server
name. [Gozer]

added -defines configuration option, providing a way to pass additional
-D names to the server for use in <IfDefine> blocks.  [Geoffrey Young]

Make it possible to run TEST (or another driving script) from any path
(e.g. t/TEST, ./TEST, /full/path/to/t/TEST) [Stas]

If at least one *conf*.in files is modified since the last
configuration, make sure to regenerate them all, so the right ports
will be assigned. [Stas]

Make sure that Apache-Test modules are installed into INSTALLSITEARCH
during a standalone build. Because EU::MM does so when A-T is bundled
with mp2, and we want to avoid having A-T installed in two different
places under @INC. [Stas]

HTTP/0.9 responses no longer croak, provided $ENV{APACHE_TEST_HTTP_09_OK}
is true.  [Geoffrey Young]

Hard-code listen directive to 127.0.0.1, solving problems for people
with IPv4 & IPv6 address until a better solution is found. [Gozer]

prefix Apache::TestTrace (non-colour mode) messages with the loglevel,
similar to what Apache does. [Stas]

Instrument A-T with an optional successful (shell-wise) abort of the
test suite, by asking the user whether they want to continue w/o
completing the test suite. Use it in places where we know that the
test suite will certaionly fail (e.g. running from /root as 'root', or
not providing httpd/apxs locations). [Stas]

In order to make Apache-Test compatible with the rest of Perl testing
frameworks, we no longer chdir into t/, but run from the root of the
project (where t/ resides). A test needing to know where it's running
from (e.g. to read/write files/dirs on the filesystem), should do that
relative to the serverroot, documentroot and other server
configuration variables, available via
Apache::Test::vars('serverroot'), Apache::Test::vars('documentroot'),
etc. [Stas]

Apache::Test::vars() can now query for config arguments [Stas]

generate t/conf if it does not already exist, which
it may not if the tests are entirely autoconfigured.
[Geoffrey Young]

Special to Apache-Test environment variables:
APXS APACHE APACHE_GROUP APACHE_USER APACHE_PORT
are now moved to:
APACHE_TEST_APXS APACHE_TEST_HTTPD APACHE_TEST_GROUP
APACHE_TEST_USER APACHE_TEST_PORT
respectively, for consistency with other APACHE_TEST_ env vars and in
order not to interfere with other projects that may use the same env
vars. [Stas]

if $self->{reconfigure} is true, make sure to perform a complete
reconfiguration, to solve the bug where conf.in files weren't reparsed
and vhost hostport info was getting lost on subsequent runs when
APACHE env var was set (one of the cases when $self->{reconfigure} is
true). [Stas]

handle "Include conf/*conf" cases when inheriting httpd.conf in a
cleaner way, don't complain that "*conf" doesn't exist, since it's a
glob pattern. Instead check try to resolve the base directory. [Stas]

import the Apache::TestMM clean target in Makefile.PL so 'make clean'
will call t/TEST -clean [Stas]

fix have_apache_version(), have_min_apache_version(), and
have_min_module_version() to use proper numeric version strings
in comparisons.  thanks to Rafael Garcia-Suarez for the spot.
[Geoffrey Young]

fix Apache::TestConfig::which to check that the found file is a plain
file [Stas]

implementing custom interactive and non-interactive (with the -save
option) reusable configuration for -httpd, -apxs, -user, -group, and
-port [Randy Kobes, Stas]


__________________________________________________________________
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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [ANNOUNCE] Apache::Test 1.08 RC1

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
>> +    my $mp2 =  Apache::TestConfig::IS_MOD_PERL_2_BUILD();
>> +    $vars_must_overriden++ if $mp2;
>>  
>>      unless ($vars_must_overriden) {
>>          for (@data_vars_must) {
> 
> 
> For some reason perl doesn't like undef constants at compile time. You
> can reproduce the problem with:
> 
>   use constant IS_MOD_PERL_2 => undef;
> 
> This fixes the source of the problem. Now committed.
> 
> I'll try to write a pure perl test case and bounce of p5p.




Re: [ANNOUNCE] Apache::Test 1.08 RC1

Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
> 
> Stas Bekman wrote:
> 
>>We would like to release Apache::Test 1.08. It includes multiple changes
>>and improvements, therefore we need your help to test it and report any
>>problems you may have noticed.
>>
>>http://apache.org/~stas/Apache-Test-1.08-dev.tar.gz
> 
> 
> I'm getting a strange error from 5.6.1 where no mod_perl is installed.
> 
> $ /perl/perl-5.6.1/bin/perl Makefile.PL -apxs
> /apache/2.1/prefork/noperl/bin/apxs
> Useless use of a constant in void context at
> Apache-Test/lib/Apache/TestRun.pm line 1196.
> 
> strangely, the attached patch fixes things.
> 
> --Geoff
> 
> 
> ------------------------------------------------------------------------
> 
> Index: Apache-Test/lib/Apache/TestRun.pm
> ===================================================================
> RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestRun.pm,v
> retrieving revision 1.152
> diff -u -r1.152 TestRun.pm
> --- Apache-Test/lib/Apache/TestRun.pm	19 Feb 2004 19:52:52 -0000	1.152
> +++ Apache-Test/lib/Apache/TestRun.pm	24 Feb 2004 17:04:15 -0000
> @@ -1193,7 +1193,8 @@
>  
>      # mod_perl 2.0 build always knows the right httpd location (and
>      # optionally apxs)
> -    $vars_must_overriden++ if Apache::TestConfig::IS_MOD_PERL_2_BUILD();
> +    my $mp2 =  Apache::TestConfig::IS_MOD_PERL_2_BUILD();
> +    $vars_must_overriden++ if $mp2;
>  
>      unless ($vars_must_overriden) {
>          for (@data_vars_must) {

For some reason perl doesn't like undef constants at compile time. You can 
reproduce the problem with:

   use constant IS_MOD_PERL_2 => undef;

This fixes the source of the problem. Now committed.

I'll try to write a pure perl test case and bounce of p5p.

Index: lib/Apache/TestConfig.pm
===================================================================
RCS file: 
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfig.pm,v
retrieving revision 1.210
diff -u -r1.210 TestConfig.pm
--- lib/Apache/TestConfig.pm    21 Feb 2004 20:28:47 -0000      1.210
+++ lib/Apache/TestConfig.pm    24 Feb 2004 19:26:29 -0000
@@ -12,7 +12,7 @@
  use constant DEFAULT_PORT => 8529;

  use constant IS_MOD_PERL_2       =>
-    eval { require mod_perl } && $mod_perl::VERSION >= 1.99;
+    eval { require mod_perl && $mod_perl::VERSION >= 1.99 } || 0;

  use constant IS_MOD_PERL_2_BUILD => IS_MOD_PERL_2 &&
      require Apache::Build && Apache::Build::IS_MOD_PERL_BUILD();

__________________________________________________________________
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: [ANNOUNCE] Apache::Test 1.08 RC1

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Stas Bekman wrote:
> We would like to release Apache::Test 1.08. It includes multiple changes
> and improvements, therefore we need your help to test it and report any
> problems you may have noticed.
> 
> http://apache.org/~stas/Apache-Test-1.08-dev.tar.gz

I'm getting a strange error from 5.6.1 where no mod_perl is installed.

$ /perl/perl-5.6.1/bin/perl Makefile.PL -apxs
/apache/2.1/prefork/noperl/bin/apxs
Useless use of a constant in void context at
Apache-Test/lib/Apache/TestRun.pm line 1196.

strangely, the attached patch fixes things.

--Geoff

Re: [ANNOUNCE] Apache::Test 1.08 RC1

Posted by David Wheeler <da...@kineticode.com>.
On Feb 23, 2004, at 4:53 PM, Stas Bekman wrote:

> We would like to release Apache::Test 1.08. It includes multiple 
> changes and improvements, therefore we need your help to test it and 
> report any problems you may have noticed.
>
> http://apache.org/~stas/Apache-Test-1.08-dev.tar.gz
>
> Thanks.

All tests successful.

perl v5.8.3 built for darwin-2level

Regards,

David


Re: [ANNOUNCE] Apache::Test 1.08 RC1

Posted by Stas Bekman <st...@stason.org>.
Thanks to all for testing this version. 1.08 is making its way to CPAN mirrors 
at this very moment.

__________________________________________________________________
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: [ANNOUNCE] Apache::Test 1.08 RC1

Posted by Andrew Wyllie <wy...@dilex.net>.
On Monday, Feb 23, 2004, at 20:04 US/Eastern, Philippe M. Chiasson 
wrote:

> On Mon, 2004-02-23 at 16:53 -0800, Stas Bekman wrote:
>> We would like to release Apache::Test 1.08. It includes multiple 
>> changes and
>> improvements, therefore we need your help to test it and report any 
>> problems
>> you may have noticed.
>
> All tests successful :
>  + Linux-2.6
>  + Linux-2.4
>  + OpenBSD 3.4 (IPv4)
>  + OpenBSD 3.4 (IPv6)

All tests successful:
+ FreeBSD 5.2.1 (IPv4 and IPv6)

Thanks!

Andrew
>
>> http://apache.org/~stas/Apache-Test-1.08-dev.tar.gz
>>
>> Thanks.
>>
>> [...]
>>
>> __________________________________________________________________
>> 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
> <signature.asc>


Re: [ANNOUNCE] Apache::Test 1.08 RC1

Posted by "Philippe M. Chiasson" <go...@cpan.org>.
On Mon, 2004-02-23 at 16:53 -0800, Stas Bekman wrote:
> We would like to release Apache::Test 1.08. It includes multiple changes and 
> improvements, therefore we need your help to test it and report any problems 
> you may have noticed.

All tests successful : 
 + Linux-2.6
 + Linux-2.4
 + OpenBSD 3.4 (IPv4)
 + OpenBSD 3.4 (IPv6)

> http://apache.org/~stas/Apache-Test-1.08-dev.tar.gz
> 
> Thanks.
> 
> [...]
> 
> __________________________________________________________________
> 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: [ANNOUNCE] Apache::Test 1.08 RC1

Posted by Stas Bekman <st...@stason.org>.
William McKee wrote:
> Stas,
> 
> Ignore that previous failure message. 

It was right on, A-T should be installable without having any mp generation 
installed. It's now fixed in cvs.

> I tried to install the package on
> the wrong system (one without Apache installed). Once I corrected that
> error, everything worked fine. I was even prompted for the location of
> my httpd binary because it is not in the path.

Excellent!

__________________________________________________________________
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: [ANNOUNCE] Apache::Test 1.08 RC1

Posted by William McKee <wi...@knowmad.com>.
Stas,

Ignore that previous failure message. I tried to install the package on
the wrong system (one without Apache installed). Once I corrected that
error, everything worked fine. I was even prompted for the location of
my httpd binary because it is not in the path.

Test output:

  server localhost:8529 started
  t/ping.......ok                                                              
  t/request....ok                                                              
  All tests successful.
  Files=2, Tests=12,  2 wallclock secs ( 1.65 cusr +  0.20 csys =  1.85
  CPU)
  server localhost:8529 shutdown


Nice work!
William

-- 
Knowmad Services Inc.
http://www.knowmad.com

Re: [ANNOUNCE] Apache::Test 1.08 RC1

Posted by William McKee <wi...@knowmad.com>.
On Mon, Feb 23, 2004 at 04:53:48PM -0800, Stas Bekman wrote:
> We would like to release Apache::Test 1.08. It includes multiple changes 
> and improvements, therefore we need your help to test it and report any 
> problems you may have noticed.

I did not see an INSTALL file so did the usual `perl Makefile.PL`. This
command gave the following output:

  Useless use of a constant in void context at lib/Apache/TestRun.pm line
  1196.
  Compilation failed in require at lib/Apache/TestConfig.pm line 36.
  BEGIN failed--compilation aborted at lib/Apache/TestConfig.pm line 36.
  Compilation failed in require at lib/Apache/TestMM.pm line 7.
  BEGIN failed--compilation aborted at lib/Apache/TestMM.pm line 7.
  Compilation failed in require at Makefile.PL line 16.
  BEGIN failed--compilation aborted at Makefile.PL line 16.


Platform: Debian Sarge (testing)
Perl: 5.8.2


Thanks,
William

--
Knowmad Services Inc.
http://www.knowmad.com