--- embedaddon/lighttpd/tests/mod-ssi.t 2013/10/14 10:32:47 1.1.1.1 +++ embedaddon/lighttpd/tests/mod-ssi.t 2016/11/02 10:35:00 1.1.1.2 @@ -8,7 +8,7 @@ BEGIN { use strict; use IO::Socket; -use Test::More tests => 4; +use Test::More tests => 5; use LightyTest; my $tf = LightyTest->new(); @@ -16,8 +16,6 @@ my $t; ok($tf->start_proc == 0, "Starting lighttpd") or die(); -# mod-cgi -# $t->{REQUEST} = ( <{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => "2\n\n" } ]; ok($tf->handle_http($t) == 0, 'ssi - echo '); + + +$t->{REQUEST} = ( <{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => "/ssi-include.shtml\n/ssi-include.shtml\n/ssi-include.shtml\nssi-include\n\nssi-include\n\n" } ]; +ok($tf->handle_http($t) == 0, 'ssi - include'); ok($tf->stop_proc == 0, "Stopping lighttpd");