Browse Source
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@612 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.2
6 changed files with 35 additions and 1 deletions
@ -1,4 +1,4 @@
|
||||
EXTRA_DIST=cgi.php cgi.pl dummydir index.html index.txt phpinfo.php \
|
||||
phpself.php redirect.php cgi-pathinfo.pl phphost.php pathinfo.php \
|
||||
nph-status.pl prefix.fcgi get-header.pl
|
||||
nph-status.pl prefix.fcgi get-header.pl ssi.shtml
|
||||
SUBDIRS=go indexfile expire
|
||||
|
@ -0,0 +1,29 @@
|
||||
#! /usr/bin/perl -w |
||||
BEGIN { |
||||
# add current source dir to the include-path |
||||
# we need this for make distcheck |
||||
(my $srcdir = $0) =~ s#/[^/]+$#/#; |
||||
unshift @INC, $srcdir; |
||||
} |
||||
|
||||
use strict; |
||||
use IO::Socket; |
||||
use Test::More tests => 3; |
||||
use LightyTest; |
||||
|
||||
my $tf = LightyTest->new(); |
||||
my $t; |
||||
|
||||
ok($tf->start_proc == 0, "Starting lighttpd") or die(); |
||||
|
||||
# mod-cgi |
||||
# |
||||
$t->{REQUEST} = ( <<EOF |
||||
GET /ssi.shtml HTTP/1.0 |
||||
EOF |
||||
); |
||||
$t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => "/ssi.shtml\n" } ); |
||||
ok($tf->handle_http($t) == 0, 'ssi - echo '); |
||||
|
||||
ok($tf->stop_proc == 0, "Stopping lighttpd"); |
||||
|
Loading…
Reference in new issue