[tests] mod_ssi tests moved to src/t/test_mod_ssi

remove mod_ssi Perl tests now performed by src/t/test_mod_ssi
personal/stbuehler/tests-path
Glenn Strauss 2021-11-08 07:18:11 -05:00
parent 699209103c
commit adf2f816df
8 changed files with 2 additions and 47 deletions

View File

@ -3,10 +3,6 @@ EXTRA_DIST=\
404.html \
404.pl \
cgi.pl \
exec-date.shtml \
index.html \
index.txt \
prefix.fcgi \
ssi-include.shtml \
ssi-include.txt \
ssi.shtml
prefix.fcgi

View File

@ -1 +0,0 @@
<!--#exec cmd="expr 1 + 1"-->

View File

@ -1,5 +0,0 @@
<!--#echo var=SCRIPT_NAME-->
<!--#echo var='SCRIPT_NAME'-->
<!--#echo var="SCRIPT_NAME"-->
<!--#include virtual="ssi-include.txt" -->
<!--#include file="ssi-include.txt" -->

View File

@ -1 +0,0 @@
ssi-include

View File

@ -1 +0,0 @@
<!--#echo var="SCRIPT_NAME" -->

View File

@ -25,7 +25,6 @@ server.modules = (
"mod_simple_vhost",
"mod_cgi",
"mod_userdir",
"mod_ssi",
"mod_status",
"mod_secdownload",
"mod_deflate",
@ -36,10 +35,6 @@ index-file.names = (
"index.html",
)
ssi.extension = (
".shtml",
)
accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
mimetype.assign = (

View File

@ -31,7 +31,6 @@ mkdir -p "${tmpdir}/servers/www.example.org/pages/" \
cp "${srcdir}/docroot/"*.html \
"${srcdir}/docroot/"*.pl \
"${srcdir}/docroot/"*.fcgi \
"${srcdir}/docroot/"*.shtml \
"${srcdir}/docroot/"*.txt \
"${tmpdir}/servers/www.example.org/pages/"
cp "${srcdir}/lighttpd.user" "${tmpdir}/"

View File

@ -8,7 +8,7 @@ BEGIN {
use strict;
use IO::Socket;
use Test::More tests => 179;
use Test::More tests => 176;
use LightyTest;
my $tf = LightyTest->new();
@ -1823,31 +1823,4 @@ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'BAR2
ok($tf->handle_http($t) == 0, 'query set-response-header');
## mod_ssi
$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 ');
## bug #280
$t->{REQUEST} = ( <<EOF
GET /exec-date.shtml HTTP/1.0
EOF
);
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => "2\n\n" } ];
ok($tf->handle_http($t) == 0, 'ssi - echo ');
$t->{REQUEST} = ( <<EOF
GET /ssi-include.shtml HTTP/1.0
EOF
);
$t->{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");