Changeset 479
- Timestamp:
- 07/28/2005 10:24:49 AM (3 years ago)
- Location:
- branches/lighttpd-1.3.x/tests
- Files:
-
- 4 modified
-
docroot/www/Makefile.am (modified) (1 diff)
-
lighttpd.conf (modified) (1 diff)
-
mod-fastcgi.t (modified) (3 diffs)
-
prepare.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-1.3.x/tests/docroot/www/Makefile.am
r56 r479 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 prefix.fcgi 4 4 SUBDIRS=go indexfile expire -
branches/lighttpd-1.3.x/tests/lighttpd.conf
r349 r479 68 68 69 69 fastcgi.debug = 0 70 fastcgi.server = ( ".php" => ( 71 "grisu" => ( 72 "host" => "127.0.0.1", 73 "port" => 1026, 74 # "mode" => "authorizer", 75 # "docroot" => "/tmp/lighttpd/servers/www.example.org/pages/", 76 ) 77 ) 70 fastcgi.server = ( ".php" => ( ( "host" => "127.0.0.1", "port" => 1026 ) ), 71 "/prefix.fcgi" => ( ( "host" => "127.0.0.1", "port" => 1026, "check-local" => "disable", "broken-scriptfilename" => "enable" ) ) 78 72 ) 79 73 -
branches/lighttpd-1.3.x/tests/mod-fastcgi.t
r394 r479 8 8 9 9 use strict; 10 use Test::More tests => 4 0;10 use Test::More tests => 43; 11 11 use LightyTest; 12 12 … … 16 16 17 17 SKIP: { 18 skip "no PHP running on port 1026", 2 4if $tf->pidof("php") == -1;18 skip "no PHP running on port 1026", 27 if $tf->pidof("php") == -1; 19 19 20 20 ok($tf->start_proc == 0, "Starting lighttpd") or die(); … … 120 120 $t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '/indexfile/index.php' } ); 121 121 ok($tf->handle_http($t) == 0, 'PHP_SELF + Indexfile, Bug #3'); 122 123 $t->{REQUEST} = ( <<EOF 124 GET /prefix.fcgi?var=SCRIPT_NAME HTTP/1.0 125 EOF 126 ); 127 $t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '/prefix.fcgi' } ); 128 ok($tf->handle_http($t) == 0, 'PATH_INFO, check-local off'); 129 130 $t->{REQUEST} = ( <<EOF 131 GET /prefix.fcgi/foo/bar?var=SCRIPT_NAME HTTP/1.0 132 EOF 133 ); 134 $t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '/prefix.fcgi' } ); 135 ok($tf->handle_http($t) == 0, 'PATH_INFO, check-local off'); 136 137 $t->{REQUEST} = ( <<EOF 138 GET /prefix.fcgi/foo/bar?var=PATH_INFO HTTP/1.0 139 EOF 140 ); 141 $t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '/foo/bar' } ); 142 ok($tf->handle_http($t) == 0, 'PATH_INFO, check-local off'); 122 143 123 144 -
branches/lighttpd-1.3.x/tests/prepare.sh
r56 r479 23 23 $srcdir/docroot/www/*.php \ 24 24 $srcdir/docroot/www/*.pl \ 25 $srcdir/docroot/www/*.fcgi \ 25 26 $srcdir/docroot/www/*.txt $tmpdir/servers/www.example.org/pages/ 26 27 cp $srcdir/docroot/www/go/*.php $tmpdir/servers/www.example.org/pages/go/

