Re: Apache test suite problems

2010-01-26 Thread Jeff Trawick
On Mon, Jan 25, 2010 at 9:52 PM, leon llw...@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/%
 3ccc67648e1001250459t423605fekcd3b57dcf99e7...@mail.gmail.com%3e
 Amazing power of google :)


 On Sun, Jan 24, 2010 at 10:31 PM, leon llw...@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.

 l...@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/404ok
 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/getfileok
 t/apache/headersok
 t/apache/limits.ok
 t/apache/optionsok
 t/apache/passbrigadeok
 t/apache/post...ok
 t/apache/pr18757skipped
        all skipped: cannot find module 'proxy'
 t/apache/pr35292ok
 t/apache/pr35330ok
 t/apache/pr37166ok
 t/apache/rwrite.ok
 t/apr/uri...ok
 t/filter/case...skipped
        all skipped: cannot find module 'case_filter'
 t/filter/case_inskipped
        all skipped: cannot find module 'case_filter_in'
 t/filter/input_body.ok
 t/http11/basicauth..ok
 t/http11/chunkedok
 t/http11/chunked2...skipped
        all skipped: cannot find module 'bucketeer'
 t/http11/post...ok
 t/modules/accessok
 t/modules/alias.ok
 t/modules/asis..skipped
        all skipped: cannot find module 'asis'
 t/modules/autoindex.ok
 t/modules/autoindex2ok
 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', 

Re: Apache test suite problems

2010-01-25 Thread Jeff Trawick
On Sun, Jan 24, 2010 at 10:31 PM, leon llw...@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.