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 $tf->{CONFIGFILE
} = 'mod-simplevhost.conf';
19 ok
($tf->start_proc == 0, "Starting lighttpd") or die();
21 $t->{REQUEST
} = ( <<EOF
22 GET /a/a.html HTTP/1.0
26 $t->{RESPONSE
} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ];
27 ok
($tf->handle_http($t) == 0, 'Check /a/a.html path');
29 $t->{REQUEST
} = ( <<EOF
30 GET /b/b.html HTTP/1.0
34 $t->{RESPONSE
} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ];
35 ok
($tf->handle_http($t) == 0, 'Check /b/b.html path');
37 ok
($tf->stop_proc == 0, "Stopping lighttpd");