3 # add current source dir to the include-path
4 # we need this for make distcheck
5 (my $srcdir = $0) =~ s
,/[^/]+$,/,;
11 use Test
::More tests
=> 4;
14 my $tf = LightyTest
->new();
17 ok
($tf->start_proc == 0, "Starting lighttpd") or die();
21 $t->{REQUEST
} = ( <<EOF
22 GET /ssi.shtml HTTP/1.0
25 $t->{RESPONSE
} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => "/ssi.shtml\n" } ];
26 ok
($tf->handle_http($t) == 0, 'ssi - echo ');
30 $t->{REQUEST
} = ( <<EOF
31 GET /exec-date.shtml HTTP/1.0
34 $t->{RESPONSE
} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => "2\n\n" } ];
35 ok
($tf->handle_http($t) == 0, 'ssi - echo ');
38 ok
($tf->stop_proc == 0, "Stopping lighttpd");