Changeset 111
- Timestamp:
- 03/14/2005 11:22:13 AM (3 years ago)
- Location:
- trunk/tests
- Files:
-
- 3 added
- 4 modified
-
Makefile.am (modified) (2 diffs)
-
core-keepalive.t (added)
-
docroot/www/Makefile.am (modified) (1 diff)
-
docroot/www/get-post-len.pl (added)
-
lighttpd.conf (modified) (1 diff)
-
mod-cgi.t (modified) (2 diffs)
-
mod-setenv.t (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/Makefile.am
r99 r111 25 25 core-request.t \ 26 26 core-response.t \ 27 core-keepalive.t \ 27 28 core.t \ 28 29 mod-access.t \ … … 34 35 mod-userdir.t \ 35 36 mod-rewrite.t \ 37 mod-setenv.t \ 36 38 request.t 37 39 -
trunk/tests/docroot/www/Makefile.am
r56 r111 1 1 EXTRA_DIST=cgi.php cgi.pl dummydir index.html index.txt phpinfo.php \ 2 2 phpself.php redirect.php cgi-pathinfo.pl phphost.php \ 3 nph-status.pl 3 nph-status.pl get-header.pl get-post-len.pl 4 4 SUBDIRS=go indexfile expire -
trunk/tests/lighttpd.conf
r92 r111 65 65 compress.filetype = ("text/plain", "text/html") 66 66 67 setenv.add-environment = ( "TRAC_ENV" => " foo")67 setenv.add-environment = ( "TRAC_ENV" => "tracenv", "SETENV" => "setenv") 68 68 setenv.add-request-header = ( "FOO" => "foo") 69 69 setenv.add-response-header = ( "BAR" => "foo") -
trunk/tests/mod-cgi.t
r72 r111 3 3 use strict; 4 4 use IO::Socket; 5 use Test::More tests => 6;5 use Test::More tests => 9; 6 6 7 7 my $basedir = (defined $ENV{'top_builddir'} ? $ENV{'top_builddir'} : '..'); … … 219 219 ok(handle_http == 0, 'NPH + perl, Bug #14'); 220 220 221 @request = ( <<EOF 222 GET /get-header.pl?QUERY_STRING HTTP/1.0 223 EOF 224 ); 225 @response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'QUERY_STRING' } ); 226 ok(handle_http == 0, 'cgi-env: QUERY_STRING'); 227 228 @request = ( <<EOF 229 GET /get-header.pl?GATEWAY_INTERFACE HTTP/1.0 230 EOF 231 ); 232 @response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'CGI/1.1' } ); 233 ok(handle_http == 0, 'cgi-env: GATEWAY_INTERFACE'); 234 235 @request = ( <<EOF 236 GET /get-header.pl?HTTP_HOST HTTP/1.0 237 Host: www.example.org 238 EOF 239 ); 240 @response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'www.example.org' } ); 241 ok(handle_http == 0, 'cgi-env: HTTP_HOST'); 242 243 244 245 246 221 247 ok(stop_proc == 0, "Stopping lighttpd"); 222 248

