Changeset 111

Show
Ignore:
Timestamp:
03/14/2005 11:22:13 AM (3 years ago)
Author:
jan
Message:

added tests for keep-alive, post requests in cgi and setenv

Location:
trunk/tests
Files:
3 added
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/Makefile.am

    r99 r111  
    2525      core-request.t \ 
    2626      core-response.t \ 
     27      core-keepalive.t \ 
    2728      core.t \ 
    2829      mod-access.t \ 
     
    3435      mod-userdir.t \ 
    3536      mod-rewrite.t \ 
     37      mod-setenv.t \ 
    3638      request.t  
    3739 
  • trunk/tests/docroot/www/Makefile.am

    r56 r111  
    11EXTRA_DIST=cgi.php cgi.pl dummydir index.html index.txt phpinfo.php \ 
    22           phpself.php redirect.php cgi-pathinfo.pl phphost.php  \ 
    3            nph-status.pl 
     3           nph-status.pl get-header.pl get-post-len.pl 
    44SUBDIRS=go indexfile expire 
  • trunk/tests/lighttpd.conf

    r92 r111  
    6565compress.filetype           = ("text/plain", "text/html") 
    6666 
    67 setenv.add-environment      = ( "TRAC_ENV" => "foo") 
     67setenv.add-environment      = ( "TRAC_ENV" => "tracenv", "SETENV" => "setenv") 
    6868setenv.add-request-header   = ( "FOO" => "foo") 
    6969setenv.add-response-header  = ( "BAR" => "foo") 
  • trunk/tests/mod-cgi.t

    r72 r111  
    33use strict; 
    44use IO::Socket; 
    5 use Test::More tests => 6; 
     5use Test::More tests => 9; 
    66 
    77my $basedir = (defined $ENV{'top_builddir'} ? $ENV{'top_builddir'} : '..'); 
     
    219219ok(handle_http == 0, 'NPH + perl, Bug #14'); 
    220220 
     221@request  = ( <<EOF 
     222GET /get-header.pl?QUERY_STRING HTTP/1.0 
     223EOF 
     224 ); 
     225@response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'QUERY_STRING' } ); 
     226ok(handle_http == 0, 'cgi-env: QUERY_STRING'); 
     227 
     228@request  = ( <<EOF 
     229GET /get-header.pl?GATEWAY_INTERFACE HTTP/1.0 
     230EOF 
     231 ); 
     232@response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'CGI/1.1' } ); 
     233ok(handle_http == 0, 'cgi-env: GATEWAY_INTERFACE'); 
     234 
     235@request  = ( <<EOF 
     236GET /get-header.pl?HTTP_HOST HTTP/1.0 
     237Host: www.example.org 
     238EOF 
     239 ); 
     240@response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'www.example.org' } ); 
     241ok(handle_http == 0, 'cgi-env: HTTP_HOST'); 
     242 
     243 
     244 
     245 
     246 
    221247ok(stop_proc == 0, "Stopping lighttpd"); 
    222248