You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Torsten Förtsch <to...@gmx.net> on 2010/08/13 20:55:50 UTC

Trunk: A::R and A::SL test failures

Hi,

I am trying to compile/test trunk with a freshly compiled perl and apache. 
There hasn't been installed a modperl nor A::T/A::R/A::SL for this perl.

make[2]: Entering directory `/home/r2/work/mp2/trunk/clean-trunk-
prefork/Apache-Reload'
/opt/perl/bin/perl -I../blib/arch -I../blib/lib \
        t/TEST  -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /opt/perl/bin/perl /home/r2/work/mp2/trunk/clean-trunk-
prefork/Apache-Reload/t/TEST -clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= 
APACHE_TEST_APXS=/opt/apache-prefork/sbin/apxs \
        /opt/perl/bin/perl -I../blib/arch -I../blib/lib \
        t/TEST  -bugreport -verbose=0 
[warning] setting ulimit to allow core files
ulimit -c unlimited; /opt/perl/bin/perl /home/r2/work/mp2/trunk/clean-trunk-
prefork/Apache-Reload/t/TEST -bugreport -verbose=0
/opt/apache-prefork/sbin/httpd  -d /home/r2/work/mp2/trunk/clean-trunk-
prefork/Apache-Reload/t -f /home/r2/work/mp2/trunk/clean-trunk-prefork/Apache-
Reload/t/conf/httpd.conf -D APACHE2 
using Apache/2.2.16 (prefork MPM)

waiting 60 seconds for server to start: ..
waiting 60 seconds for server to start: ok (waited 1 secs)
server localhost.localdomain:8529 started
Can't locate Apache/Test.pm in @INC (@INC contains: /opt/mod_perl 
/opt/perl/lib/site_perl/5.12.1/x86_64-linux /opt/perl/lib/site_perl/5.12.1 
/opt/perl/lib/vendor_perl/5.12.1/x86_64-linux /opt/perl/lib/vendor_perl/5.12.1 
/opt/perl/lib/5.12.1/x86_64-linux /opt/perl/lib/5.12.1 .) at t/all.t line 4.
BEGIN failed--compilation aborted at t/all.t line 4.
t/all.t .. skipped: cannot find module 'mod_perl.c'
Files=1, Tests=0,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.25 cusr  0.06 
csys =  0.34 CPU)
Result: NOTESTS
[warning] server localhost.localdomain:8529 shutdown
make[2]: Leaving directory `/home/r2/work/mp2/trunk/clean-trunk-
prefork/Apache-Reload'
make -C Apache-SizeLimit test
make[2]: Entering directory `/home/r2/work/mp2/trunk/clean-trunk-
prefork/Apache-SizeLimit'
/opt/perl/bin/perl -I../blib/arch -I../blib/lib \
        t/TEST  -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /opt/perl/bin/perl /home/r2/work/mp2/trunk/clean-trunk-
prefork/Apache-SizeLimit/t/TEST -clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= 
APACHE_TEST_APXS=/opt/apache-prefork/sbin/apxs \
        /opt/perl/bin/perl -I../blib/arch -I../blib/lib \
        t/TEST  -bugreport -verbose=0 
[warning] setting ulimit to allow core files
ulimit -c unlimited; /opt/perl/bin/perl /home/r2/work/mp2/trunk/clean-trunk-
prefork/Apache-SizeLimit/t/TEST -bugreport -verbose=0
/opt/apache-prefork/sbin/httpd  -d /home/r2/work/mp2/trunk/clean-trunk-
prefork/Apache-SizeLimit/t -f /home/r2/work/mp2/trunk/clean-trunk-
prefork/Apache-SizeLimit/t/conf/httpd.conf -D APACHE2 
using Apache/2.2.16 (prefork MPM)

waiting 60 seconds for server to start: .Syntax error on line 474 of 
/home/r2/work/mp2/trunk/clean-trunk-prefork/Apache-
SizeLimit/t/conf/httpd.conf:
Invalid command 'PerlOptions', perhaps misspelled or defined by a module not 
included in the server configuration
[  error] 
server has died with status 255 (t/logs/error_log wasn't created, start the 
server in the debug mode)
sh: line 1:  4806 Terminated              /opt/perl/bin/perl 
/home/r2/work/mp2/trunk/clean-trunk-prefork/Apache-SizeLimit/t/TEST -bugreport 
-verbose=0
make[2]: *** [run_tests] Error 143
make[2]: Target `test' not remade because of errors.
make[2]: Leaving directory `/home/r2/work/mp2/trunk/clean-trunk-
prefork/Apache-SizeLimit'
make[1]: *** [run_subtests] Error 2
make[1]: Leaving directory `/home/r2/work/mp2/trunk/clean-trunk-prefork'
make: *** [run_tests] Error 2

I believe A::R is failing because it uses the standard @INC but A::T is not 
yet installed there.

A::SL is failing because it expects a httpd.conf with an activated mod_perl to 
inherit from.

These are suspicions only. Perhaps they ring a bell or two.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Trunk: A::R and A::SL test failures

Posted by Torsten Förtsch <to...@gmx.net>.
On Saturday, August 14, 2010 05:23:09 Fred Moyer wrote:
> 2010/8/13 Torsten Förtsch <to...@gmx.net>:
> > I am trying to compile/test trunk with a freshly compiled perl and
> > apache. There hasn't been installed a modperl nor A::T/A::R/A::SL for
> > this perl.
> 
> Hmm, nice catch.  Can we do something similar to Apache::Test for this
> where it uses a bundled test package?

This is nasty!

TestHarness checks for the existence of "A-T/lib" and "lib" already to find 
Apache::Test when it runs from the perl-framework (the apache test suite) and 
when it wants to test A::T itself.

This patch adds one more special case. But it is the natural way to solve the 
"Can't locate Apache/Test.pm" issue for A::R/t/all.t.

One thing it didn't know yet is that all.t is a special name. This test is run 
twice. Only the first time it choked about @INC.

On the other hand, since it chokes only when it is called from
Apache::TestHarness->prune and since it is special either all.t could modify 
its @INC or prune() could be made smarter.

Please comment!

Further, I have noticed a small inconsistency in 
http://perl.apache.org/docs/general/testing/testing.html. It says that all.t 
is special. But the code checks for /\Wall\.t$/. So, 0-all.t and similar are 
also special. Is that a bug in the code or in testing.html?

Index: lib/Apache/TestHarness.pm
===================================================================
--- lib/Apache/TestHarness.pm   (revision 985316)
+++ lib/Apache/TestHarness.pm   (working copy)
@@ -74,6 +74,7 @@
         my $top_dir = Apache::Test::vars('top_dir');
 
         foreach my $lib (catfile($top_dir, qw(Apache-Test lib)),
+                         catfile($top_dir, qw(.. Apache-Test lib)),
                          catfile($top_dir, 'lib')) {
 
             if (-d $lib) {
Index: lib/Apache/TestConfig.pm
===================================================================
--- lib/Apache/TestConfig.pm    (revision 985316)
+++ lib/Apache/TestConfig.pm    (working copy)
@@ -35,7 +35,8 @@
     require Apache2::Build && Apache2::Build::IS_MOD_PERL_BUILD();
 
 use constant IS_APACHE_TEST_BUILD =>
-    grep { -e "$_/lib/Apache/TestConfig.pm" } qw(Apache-Test . ..);
+    grep { -e "$_/lib/Apache/TestConfig.pm" }
+         qw(Apache-Test . .. ../Apache-Test);
 
 use constant CUSTOM_CONFIG_FILE => 'Apache/TestConfigData.pm';


Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Trunk: A::R and A::SL test failures

Posted by Fred Moyer <fr...@redhotpenguin.com>.
2010/8/13 Torsten Förtsch <to...@gmx.net>:
> I am trying to compile/test trunk with a freshly compiled perl and apache.
> There hasn't been installed a modperl nor A::T/A::R/A::SL for this perl.

Hmm, nice catch.  Can we do something similar to Apache::Test for this
where it uses a bundled test package?


>
> make[2]: Entering directory `/home/r2/work/mp2/trunk/clean-trunk-
> prefork/Apache-Reload'
> /opt/perl/bin/perl -I../blib/arch -I../blib/lib \
>        t/TEST  -clean
> [warning] setting ulimit to allow core files
> ulimit -c unlimited; /opt/perl/bin/perl /home/r2/work/mp2/trunk/clean-trunk-
> prefork/Apache-Reload/t/TEST -clean
> APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER=
> APACHE_TEST_APXS=/opt/apache-prefork/sbin/apxs \
>        /opt/perl/bin/perl -I../blib/arch -I../blib/lib \
>        t/TEST  -bugreport -verbose=0
> [warning] setting ulimit to allow core files
> ulimit -c unlimited; /opt/perl/bin/perl /home/r2/work/mp2/trunk/clean-trunk-
> prefork/Apache-Reload/t/TEST -bugreport -verbose=0
> /opt/apache-prefork/sbin/httpd  -d /home/r2/work/mp2/trunk/clean-trunk-
> prefork/Apache-Reload/t -f /home/r2/work/mp2/trunk/clean-trunk-prefork/Apache-
> Reload/t/conf/httpd.conf -D APACHE2
> using Apache/2.2.16 (prefork MPM)
>
> waiting 60 seconds for server to start: ..
> waiting 60 seconds for server to start: ok (waited 1 secs)
> server localhost.localdomain:8529 started
> Can't locate Apache/Test.pm in @INC (@INC contains: /opt/mod_perl
> /opt/perl/lib/site_perl/5.12.1/x86_64-linux /opt/perl/lib/site_perl/5.12.1
> /opt/perl/lib/vendor_perl/5.12.1/x86_64-linux /opt/perl/lib/vendor_perl/5.12.1
> /opt/perl/lib/5.12.1/x86_64-linux /opt/perl/lib/5.12.1 .) at t/all.t line 4.
> BEGIN failed--compilation aborted at t/all.t line 4.
> t/all.t .. skipped: cannot find module 'mod_perl.c'
> Files=1, Tests=0,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.25 cusr  0.06
> csys =  0.34 CPU)
> Result: NOTESTS
> [warning] server localhost.localdomain:8529 shutdown
> make[2]: Leaving directory `/home/r2/work/mp2/trunk/clean-trunk-
> prefork/Apache-Reload'
> make -C Apache-SizeLimit test
> make[2]: Entering directory `/home/r2/work/mp2/trunk/clean-trunk-
> prefork/Apache-SizeLimit'
> /opt/perl/bin/perl -I../blib/arch -I../blib/lib \
>        t/TEST  -clean
> [warning] setting ulimit to allow core files
> ulimit -c unlimited; /opt/perl/bin/perl /home/r2/work/mp2/trunk/clean-trunk-
> prefork/Apache-SizeLimit/t/TEST -clean
> APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER=
> APACHE_TEST_APXS=/opt/apache-prefork/sbin/apxs \
>        /opt/perl/bin/perl -I../blib/arch -I../blib/lib \
>        t/TEST  -bugreport -verbose=0
> [warning] setting ulimit to allow core files
> ulimit -c unlimited; /opt/perl/bin/perl /home/r2/work/mp2/trunk/clean-trunk-
> prefork/Apache-SizeLimit/t/TEST -bugreport -verbose=0
> /opt/apache-prefork/sbin/httpd  -d /home/r2/work/mp2/trunk/clean-trunk-
> prefork/Apache-SizeLimit/t -f /home/r2/work/mp2/trunk/clean-trunk-
> prefork/Apache-SizeLimit/t/conf/httpd.conf -D APACHE2
> using Apache/2.2.16 (prefork MPM)
>
> waiting 60 seconds for server to start: .Syntax error on line 474 of
> /home/r2/work/mp2/trunk/clean-trunk-prefork/Apache-
> SizeLimit/t/conf/httpd.conf:
> Invalid command 'PerlOptions', perhaps misspelled or defined by a module not
> included in the server configuration
> [  error]
> server has died with status 255 (t/logs/error_log wasn't created, start the
> server in the debug mode)
> sh: line 1:  4806 Terminated              /opt/perl/bin/perl
> /home/r2/work/mp2/trunk/clean-trunk-prefork/Apache-SizeLimit/t/TEST -bugreport
> -verbose=0
> make[2]: *** [run_tests] Error 143
> make[2]: Target `test' not remade because of errors.
> make[2]: Leaving directory `/home/r2/work/mp2/trunk/clean-trunk-
> prefork/Apache-SizeLimit'
> make[1]: *** [run_subtests] Error 2
> make[1]: Leaving directory `/home/r2/work/mp2/trunk/clean-trunk-prefork'
> make: *** [run_tests] Error 2
>
> I believe A::R is failing because it uses the standard @INC but A::T is not
> yet installed there.
>
> A::SL is failing because it expects a httpd.conf with an activated mod_perl to
> inherit from.
>
> These are suspicions only. Perhaps they ring a bell or two.
>
> Torsten Förtsch
>
> --
> Need professional modperl support? Hire me! (http://foertsch.name)
>
> Like fantasy? http://kabatinte.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Trunk: A::R and A::SL test failures

Posted by Torsten Förtsch <to...@gmx.net>.
On Friday, August 13, 2010 20:55:50 Torsten Förtsch wrote:
> I believe A::R is failing because it uses the standard @INC but A::T is
> not  yet installed there.
> 
> A::SL is failing because it expects a httpd.conf with an activated mod_perl
> to  inherit from.

Just committed revision 985658 (Apache::Test). Now it works here.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org