httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: Apache test suite problems
Date Tue, 26 Jan 2010 11:43:57 GMT
On Mon, Jan 25, 2010 at 9:52 PM, leon <llwang@novell.com> wrote:
> Hi Jeff,
>
> Sorry, I didn't get this reply mail. I found your reply during googling
> a solution...
> http://mail-archives.apache.org/mod_mbox/httpd-dev/201001.mbox/%
> 3Ccc67648e1001250459t423605fekcd3b57dcf99e74c6@mail.gmail.com%3E
> Amazing power of google :)
>
>
>> On Sun, Jan 24, 2010 at 10:31 PM, leon <llwang@novell.com> wrote:
>>
>> > Hi there,
>>
>> Please don't cc me.
>>
>> > I am using SuSE Linux Enterprise Server 11
>> > I checked out the latest code
>> > # svn checkout http://svn.apache.org/repos/asf/httpd/test/framework/trunk/
>> > httpd-framework
>> >
>> > Then I followed the "quick start" in README
>> > # perl Makefile.PL -apxs /usr/sbin/apxs2
>> > # t/TEST
>> >
>> > But I got following error:
>> > [warning] setting ulimit to allow core files
>> > ulimit -c unlimited; /usr/bin/perl /home/leon/project/httpd-framework/t/TEST
>> > /usr/sbin/httpd2-prefork -d /home/leon/project/httpd-framework/t -f
>> > /home/leon/project/httpd-framework/t/conf/httpd.conf -D APACHE2 -D
>> > PERL_USEITHREADS
>> > using Apache/2.2.13 (prefork MPM)
>>
>> no error there
>>
>> > waiting 60 seconds for server to start: .Syntax error on line 170 of
>> > /home/leon/project/httpd-framework/t/conf/httpd.conf:
>> > Invalid command '<IfVersion', 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)
>> >
>> >
>> > After I added following 3 lines into /home/leon/project/httpd-framework/t/conf/httpd.conf,
>> the test can work.
>> >
>> > <IfModule !mod_version.c>
>> >   LoadModule version_module "/usr/lib/apache2-prefork/mod_version.so"
>> > </IfModule>
>>
>> Right, the test suite requires mod_version for testing httpd 2.0 or above.
>>
>> > But there still a lot of mod missed. So lots of test skipped or failed.
>>
>> Can you show us the output?  Generally a missing Perl CPAN module or
>> httpd module will result in skipped tests but not failures; perhaps
>> some very basic modules are missing.
>>
> leon@linux-92el:~/work/apache_testsuite> t/TEST
> [warning] setting ulimit to allow core files
> ulimit -c unlimited; /usr/bin/perl /home/leon/work/apache_testsuite/t/TEST
> /usr/sbin/httpd2-prefork  -d /home/leon/work/apache_testsuite/t -f /home/leon/work/apache_testsuite/t/conf/httpd.conf
-D APACHE2 -D PERL_USEITHREADS
> using Apache/2.2.13 (prefork MPM)
>
> waiting 60 seconds for server to start: ..
> waiting 60 seconds for server to start: ok (waited 0 secs)
> server localhost:8529 started
> server localhost:8530 listening (mod_nntp_like)
> server localhost:8531 listening (mod_nntp_like_ssl)
> server localhost:8532 listening (mod_ssl)
> server localhost:8533 listening (ssl_optional_cc)
> server localhost:8534 listening (ssl_pr33791)
> server localhost:8535 listening (proxy_http_bal1)
> server localhost:8536 listening (proxy_http_bal2)
> server localhost:8537 listening (proxy_http_balancer)
> server localhost:8538 listening (proxy_http_reverse)
> server localhost:8539 listening (error_document)
> server localhost:8540 listening (mod_include)
> server localhost:8541 listening (proxy_http_https)
> server localhost:8542 listening (proxy_https_https)
> server localhost:8543 listening (proxy_https_http)
> [   info] adding source lib /home/leon/work/apache_testsuite/Apache-Test/lib to @INC
> [   info] adding source lib /home/leon/work/apache_testsuite/Apache-Test/lib to @INC
> [   info] adding source lib /home/leon/work/apache_testsuite/Apache-Test/lib to @INC
> t/apache/404................ok
> t/apache/acceptpathinfo.....ok
> t/apache/byterange..........ok
> t/apache/byterange2.........ok
> t/apache/chunkinput.........ok
> t/apache/contentlength......ok
> t/apache/errordoc...........ok
> t/apache/etags..............ok
> t/apache/getfile............ok
> t/apache/headers............ok
> t/apache/limits.............ok
> t/apache/options............ok
> t/apache/passbrigade........ok
> t/apache/post...............ok
> t/apache/pr18757............skipped
>        all skipped: cannot find module 'proxy'
> t/apache/pr35292............ok
> t/apache/pr35330............ok
> t/apache/pr37166............ok
> t/apache/rwrite.............ok
> t/apr/uri...................ok
> t/filter/case...............skipped
>        all skipped: cannot find module 'case_filter'
> t/filter/case_in............skipped
>        all skipped: cannot find module 'case_filter_in'
> t/filter/input_body.........ok
> t/http11/basicauth..........ok
> t/http11/chunked............ok
> t/http11/chunked2...........skipped
>        all skipped: cannot find module 'bucketeer'
> t/http11/post...............ok
> t/modules/access............ok
> t/modules/alias.............ok
> t/modules/asis..............skipped
>        all skipped: cannot find module 'asis'
> t/modules/autoindex.........ok
> t/modules/autoindex2........ok
> t/modules/cache.............skipped
>        all skipped: cannot find module 'cache', cannot find module 'disk_cache'
> t/modules/cgi...............ok
> t/modules/dav...............skipped
>        all skipped: cannot find module 'dav', cannot find module 'HTTP::DAV'
> t/modules/deflate...........skipped
>        all skipped: cannot find module 'deflate'
> t/modules/digest............skipped
>        all skipped: cannot find module 'mod_auth_digest'
> t/modules/dir...............ok
> t/modules/env...............ok
> t/modules/expires...........ok
> t/modules/headers...........skipped
>        all skipped: no reason given
> t/modules/include...........NOK 46/88# Failed test 46 in t/modules/include.t at line
226 fail #6
> t/modules/include...........FAILED test 46
>        Failed 1/88 tests, 98.86% okay (less 14 skipped tests: 73 okay, 82.95%)
> t/modules/info..............skipped
>        all skipped: cannot find module 'info'
> t/modules/negotiation.......ok 1/99# Failed test 99 in t/modules/negotiation.t at line
173 *TODO*
> t/modules/negotiation.......ok
> t/modules/proxy.............skipped
>        all skipped: cannot find module 'proxy'
> t/modules/proxy_balancer....skipped
>        all skipped: cannot find module 'proxy_balancer', cannot find module 'proxy_http'
> t/modules/rewrite...........skipped
>        all skipped: cannot find module 'rewrite'
> t/modules/setenvif..........ok
> t/modules/status............skipped
>        all skipped: cannot find module 'status'
> t/modules/vhost_alias.......skipped
>        all skipped: cannot find module 'vhost_alias'
> t/php/all...................skipped
>        all skipped: cannot find one of php4 or php5 or sapi_apache2.c
> t/protocol/echo.............skipped
>        all skipped: cannot find module 'mod_echo'
> t/protocol/nntp-like........skipped
>        all skipped: deferred accept() prohibits testing with 2.1
> t/security/CVE-2003-0542....skipped
>        all skipped: cannot find module 'rewrite'
> t/security/CVE-2004-0747....ok
> t/security/CVE-2004-0811....ok
> t/security/CVE-2004-0940....ok
> t/security/CVE-2004-0942....ok
> t/security/CVE-2004-0958....skipped
>        all skipped: cannot find one of php4 or php5 or sapi_apache2.c
> t/security/CVE-2004-0959....skipped
>        all skipped: cannot find one of php4 or php5 or sapi_apache2.c, PHP not installed
> t/security/CVE-2005-2491....skipped
>        all skipped: cannot find module 'rewrite'
> t/security/CVE-2005-2700....ok
> t/security/CVE-2005-3352....skipped
>        all skipped: cannot find module 'imagemap', cannot find module 'imap'
> t/security/CVE-2005-3357....ok
>        1/3 skipped: various reasons
> t/security/CVE-2006-5752....skipped
>        all skipped: cannot find module 'status'
> t/security/CVE-2007-5000....skipped
>        all skipped: cannot find module 'imagemap', cannot find module 'imap'
> t/security/CVE-2007-6388....skipped
>        all skipped: cannot find module 'status'
> t/security/CVE-2008-2364....skipped
>        all skipped: cannot find module 'proxy'
> t/security/CVE-2009-1195....ok
> t/security/CVE-2009-1890....skipped
>        all skipped: cannot find module 'mod_proxy', cannot find module 'proxy_http.c'
> t/security/CVE-2009-3555....ok 1/4
>
>
> It hangs here, and can NOT move on.

I fixed a busy loop during that testcase about 2 weeks ago:

http://svn.apache.org/viewvc?view=revision&revision=896484

See if you need to update Apache-Test to get that fix.

> I don't think adding module into httpd-framework/t/conf/httpd.conf manually is a good
way. However, this file is auto-generated by make.
> Is there any option need to add when I am doing make, in order to load necessary module?

The normal way to get an Apache module loaded for test is to edit your
normal httpd.conf to include it; then when the test suite generates
t/conf/httpd.conf it will have the module loaded too.

(and t/TEST -help shows a lot of options I've never explored)

Mime
View raw message