Import NetBSD httpd(8)
Also known as bozohttpd(8). Change-Id: I40e955b5654674f2c708b10e5e403ca9cbc92534
This commit is contained in:
32
libexec/httpd/testsuite/Makefile
Normal file
32
libexec/httpd/testsuite/Makefile
Normal file
@@ -0,0 +1,32 @@
|
||||
# $eterna: Makefile,v 1.14 2009/05/22 21:51:39 mrg Exp $
|
||||
|
||||
SIMPLETESTS= t1 t2 t3 t4 t5 t6 t7 t8 t9 t10
|
||||
BIGFILETESTS= partial4000 partial8000
|
||||
|
||||
BOZOHTTPD?= ../bozohttpd
|
||||
BOZOHTTPD?= ../debug/bozohttpd-debug
|
||||
WGET?= wget
|
||||
|
||||
all:
|
||||
|
||||
clean:
|
||||
for a in $(SIMPLETESTS); do \
|
||||
rm -f tmp.$$a.out; \
|
||||
done
|
||||
|
||||
check: check-simple check-bigfile
|
||||
|
||||
check-simple:
|
||||
.for a in $(SIMPLETESTS)
|
||||
echo "Running test $a"
|
||||
$(BOZOHTTPD) ./data < $(.CURDIR)/$a.in > tmp.$a.out || true
|
||||
$(.CURDIR)/html_cmp $(.CURDIR)/$a.out tmp.$a.out
|
||||
.endfor
|
||||
|
||||
check-bigfile:
|
||||
.for a in $(BIGFILETESTS)
|
||||
echo "Running test $a"
|
||||
$(.CURDIR)/test-bigfile "$a" "${BOZOHTTPD}" "${WGET}" "./data"
|
||||
.endfor
|
||||
|
||||
.include <bsd.obj.mk>
|
||||
127
libexec/httpd/testsuite/data/bigfile
Normal file
127
libexec/httpd/testsuite/data/bigfile
Normal file
@@ -0,0 +1,127 @@
|
||||
this is the big data file. it has to be over 1 page size in length. 0123456789
|
||||
these lines are all 80 long. this is the second line. 012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
012345678901 this is the seventh line. 12345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
456789 this is the 13th line, and there 127 lines in total. 67890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
901234567890123456789012345 this is the 18th line. 456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
78901234567890123456 this is the 31st line. 345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
90123456789012345678901234567890123456789 this is the 38th line. 78901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
012345678901234567890123456 this is the 47th line. 4567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
789012345678901234567890123456789012345678901234567 50th 7890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
56789012 this is the 52nd line. 1234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012 54th 1234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345 this is the 60th line. 2345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
678901234 this is the 71st line. 12345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567 this is the 80th line. 567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456 this is the 93th line. 3456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
6789012345678901234567890123456 this is the 101st line. 456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
123456789012345678901234567890123456789012345 this is the 106th line. 3456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
789012345678901234 110th 4567890123456789012345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
34567890123456789012345678 114th 9012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
67890123 this is the 121st line. 12345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
this is the last line. this is the end of the file. there is no more. good bye.
|
||||
50
libexec/httpd/testsuite/data/bigfile.partial4000
Normal file
50
libexec/httpd/testsuite/data/bigfile.partial4000
Normal file
@@ -0,0 +1,50 @@
|
||||
this is the big data file. it has to be over 1 page size in length. 0123456789
|
||||
these lines are all 80 long. this is the second line. 012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
012345678901 this is the seventh line. 12345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
456789 this is the 13th line, and there 127 lines in total. 67890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
901234567890123456789012345 this is the 18th line. 456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
78901234567890123456 this is the 31st line. 345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
90123456789012345678901234567890123456789 this is the 38th line. 78901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
012345678901234567890123456 this is the 47th line. 4567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
789012345678901234567890123456789012345678901234567 50th 7890123456789012345
|
||||
100
libexec/httpd/testsuite/data/bigfile.partial8000
Normal file
100
libexec/httpd/testsuite/data/bigfile.partial8000
Normal file
@@ -0,0 +1,100 @@
|
||||
this is the big data file. it has to be over 1 page size in length. 0123456789
|
||||
these lines are all 80 long. this is the second line. 012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
012345678901 this is the seventh line. 12345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
456789 this is the 13th line, and there 127 lines in total. 67890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
901234567890123456789012345 this is the 18th line. 456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
78901234567890123456 this is the 31st line. 345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
90123456789012345678901234567890123456789 this is the 38th line. 78901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
012345678901234567890123456 this is the 47th line. 4567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
789012345678901234567890123456789012345678901234567 50th 7890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
56789012 this is the 52nd line. 1234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012 54th 1234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345 this is the 60th line. 2345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
678901234 this is the 71st line. 12345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567 this is the 80th line. 567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456789012345678901234567890123456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
6789012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
5678901234567890123456789012345678901234567890123456789012345678901234567890123
|
||||
4567890123456 this is the 93th line. 3456789012345678901234567890123456789012
|
||||
3456789012345678901234567890123456789012345678901234567890123456789012345678901
|
||||
2345678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
1234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678
|
||||
9012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||||
8901234567890123456789012345678901234567890123456789012345678901234567890123456
|
||||
7890123456789012345678901234567890123456789012345678901234567890123456789012345
|
||||
4
libexec/httpd/testsuite/data/file
Normal file
4
libexec/httpd/testsuite/data/file
Normal file
@@ -0,0 +1,4 @@
|
||||
123456781234567
|
||||
345678903456789
|
||||
234567892345678
|
||||
012345670123456
|
||||
1
libexec/httpd/testsuite/data/index.html
Normal file
1
libexec/httpd/testsuite/data/index.html
Normal file
@@ -0,0 +1 @@
|
||||
this is the bozohttpd testsuite ./data/index.html file
|
||||
27
libexec/httpd/testsuite/html_cmp
Executable file
27
libexec/httpd/testsuite/html_cmp
Executable file
@@ -0,0 +1,27 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# $eterna: html_cmp,v 1.9 2011/11/17 22:18:02 mrg Exp $
|
||||
#
|
||||
# like cmp(1) but compares to files after making their `Date: ' headers
|
||||
# the same, to allow `now' and `then' to work properly. it also tries
|
||||
# to find servername's that might be the local host and converts those
|
||||
# as well..
|
||||
#
|
||||
# it must be called like `cmp file1 file1' *only*.
|
||||
|
||||
h=`hostname || uname -n`
|
||||
|
||||
sedcmd="s/^Date: .*/Date: nowish/;
|
||||
s/^Last-Modified: .*/Last-Modified: nowish/;
|
||||
s/[a-zA-Z0-9-]*\.eterna\.com\.au/$h/g;
|
||||
s/^Server: .*/^Server: bozotic HTTP server version 5.08/;
|
||||
s/^Content-Length: .*/Content-Length: 223/;"
|
||||
|
||||
sed -e "$sedcmd" < "$1" > "f1.tmp.$$"
|
||||
sed -e "$sedcmd" < "$2" > "f2.tmp.$$"
|
||||
|
||||
cmp -s "f1.tmp.$$" "f2.tmp.$$"
|
||||
rv=$?
|
||||
rm -f "f1.tmp.$$" "f2.tmp.$$"
|
||||
|
||||
exit $rv
|
||||
1
libexec/httpd/testsuite/t1.in
Normal file
1
libexec/httpd/testsuite/t1.in
Normal file
@@ -0,0 +1 @@
|
||||
get /
|
||||
2
libexec/httpd/testsuite/t1.out
Normal file
2
libexec/httpd/testsuite/t1.out
Normal file
@@ -0,0 +1,2 @@
|
||||
HTTP/0.9 200 OK
|
||||
this is the bozohttpd testsuite ./data/index.html file
|
||||
1
libexec/httpd/testsuite/t10.in
Normal file
1
libexec/httpd/testsuite/t10.in
Normal file
File diff suppressed because one or more lines are too long
8
libexec/httpd/testsuite/t10.out
Normal file
8
libexec/httpd/testsuite/t10.out
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/1.0 404 Not Found
|
||||
Content-Type: text/html
|
||||
Content-Length: 1024
|
||||
Server: bozohttpd/20140708
|
||||
|
||||
<html><head><title>404 Not Found</title></head>
|
||||
<body><h1>404 Not Found</h1>
|
||||
/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
1
libexec/httpd/testsuite/t2.in
Normal file
1
libexec/httpd/testsuite/t2.in
Normal file
@@ -0,0 +1 @@
|
||||
GET / HTTP/1.0
|
||||
9
libexec/httpd/testsuite/t2.out
Normal file
9
libexec/httpd/testsuite/t2.out
Normal file
@@ -0,0 +1,9 @@
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 10 Jul 2001 15:45:36 GMT
|
||||
Server: bozotic HTTP server version 5.08
|
||||
Accept-Ranges: bytes
|
||||
Last-Modified: Tue, 10 Jul 2001 15:50:43 GMT
|
||||
Content-Type: text/html
|
||||
Content-Length: 55
|
||||
|
||||
this is the bozohttpd testsuite ./data/index.html file
|
||||
1
libexec/httpd/testsuite/t3.in
Normal file
1
libexec/httpd/testsuite/t3.in
Normal file
@@ -0,0 +1 @@
|
||||
GET / HTTP/1.1
|
||||
11
libexec/httpd/testsuite/t3.out
Normal file
11
libexec/httpd/testsuite/t3.out
Normal file
@@ -0,0 +1,11 @@
|
||||
HTTP/1.1 400 Bad Request
|
||||
Content-Type: text/html
|
||||
Content-Length: 229
|
||||
Server: bozotic HTTP server version 5.08
|
||||
Allow: GET, HEAD, POST
|
||||
|
||||
<html><head><title>400 Bad Request</title></head>
|
||||
<body><h1>400 Bad Request</h1>
|
||||
/: <pre>The request was not valid</pre>
|
||||
<hr><address><a href="http://madrugada.eterna.com.au/">madrugada.eterna.com.au</a></address>
|
||||
</body></html>
|
||||
2
libexec/httpd/testsuite/t4.in
Normal file
2
libexec/httpd/testsuite/t4.in
Normal file
@@ -0,0 +1,2 @@
|
||||
GET / HTTP/1.1
|
||||
Host:
|
||||
10
libexec/httpd/testsuite/t4.out
Normal file
10
libexec/httpd/testsuite/t4.out
Normal file
@@ -0,0 +1,10 @@
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 10 Jul 2001 15:49:21 GMT
|
||||
Server: bozotic HTTP server version 5.08
|
||||
Accept-Ranges: bytes
|
||||
Last-Modified: Tue, 10 Jul 2001 15:34:33 GMT
|
||||
Content-Type: text/html
|
||||
Content-Length: 55
|
||||
Connection: close
|
||||
|
||||
this is the bozohttpd testsuite ./data/index.html file
|
||||
2
libexec/httpd/testsuite/t5.in
Normal file
2
libexec/httpd/testsuite/t5.in
Normal file
@@ -0,0 +1,2 @@
|
||||
GET /cgi-bin/..M-@M-/..M-@M-/..M-@M-/..M-@M-/..M-@M-/../winnt/system32/cmd.exe?/c+dir+c:\\ HTTP/1.0
|
||||
|
||||
10
libexec/httpd/testsuite/t5.out
Normal file
10
libexec/httpd/testsuite/t5.out
Normal file
@@ -0,0 +1,10 @@
|
||||
HTTP/1.0 403 Forbidden
|
||||
Content-Type: text/html
|
||||
Content-Length: 336
|
||||
Server: bozohttpd/20030206
|
||||
|
||||
<html><head><title>403 Forbidden</title></head>
|
||||
<body><h1>403 Forbidden</h1>
|
||||
/cgi-bin/..M-@M-/..M-@M-/..M-@M-/..M-@M-/..M-@M-/../winnt/system32/cmd.exe: <pre>Access to this item has been denied</pre>
|
||||
<hr><address><a href="http://what-time-is-love.eterna.com.au/">what-time-is-love.eterna.com.au</a></address>
|
||||
</body></html>
|
||||
2
libexec/httpd/testsuite/t6.in
Normal file
2
libexec/httpd/testsuite/t6.in
Normal file
@@ -0,0 +1,2 @@
|
||||
GET /xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.0
|
||||
|
||||
10
libexec/httpd/testsuite/t6.out
Normal file
10
libexec/httpd/testsuite/t6.out
Normal file
@@ -0,0 +1,10 @@
|
||||
HTTP/1.0 404 Not Found
|
||||
Content-Type: text/html
|
||||
Content-Length: 335
|
||||
Server: bozohttpd/5.15
|
||||
|
||||
<html><head><title>404 Not Found</title></head>
|
||||
<body><h1>404 Not Found</h1>
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: <pre>This item has not been found</pre>
|
||||
<hr><address><a href="http://splode.eterna.com.au/">splode.eterna.com.au</a></address>
|
||||
</body></html>
|
||||
4
libexec/httpd/testsuite/t7.in
Normal file
4
libexec/httpd/testsuite/t7.in
Normal file
@@ -0,0 +1,4 @@
|
||||
GET /file HTTP/1.1
|
||||
Host:
|
||||
Range: bytes=0-63
|
||||
|
||||
14
libexec/httpd/testsuite/t7.out
Normal file
14
libexec/httpd/testsuite/t7.out
Normal file
@@ -0,0 +1,14 @@
|
||||
HTTP/1.1 206 Partial Content
|
||||
Date: Sun, 02 Mar 2008 08:52:03 GMT
|
||||
Server: bozohttpd/20060710
|
||||
Accept-Ranges: bytes
|
||||
Last-Modified: Sun, 02 Mar 2008 08:44:38 GMT
|
||||
Content-Type: text/plain
|
||||
Content-Range: bytes 0-63/64
|
||||
Content-Length: 64
|
||||
Connection: close
|
||||
|
||||
123456781234567
|
||||
345678903456789
|
||||
234567892345678
|
||||
012345670123456
|
||||
4
libexec/httpd/testsuite/t8.in
Normal file
4
libexec/httpd/testsuite/t8.in
Normal file
@@ -0,0 +1,4 @@
|
||||
GET /file HTTP/1.1
|
||||
Host:
|
||||
Range: bytes=0-31
|
||||
|
||||
12
libexec/httpd/testsuite/t8.out
Normal file
12
libexec/httpd/testsuite/t8.out
Normal file
@@ -0,0 +1,12 @@
|
||||
HTTP/1.1 206 Partial Content
|
||||
Date: Sun, 02 Mar 2008 08:52:03 GMT
|
||||
Server: bozohttpd/20060710
|
||||
Accept-Ranges: bytes
|
||||
Last-Modified: Sun, 02 Mar 2008 08:44:38 GMT
|
||||
Content-Type: text/plain
|
||||
Content-Range: bytes 0-31/64
|
||||
Content-Length: 32
|
||||
Connection: close
|
||||
|
||||
123456781234567
|
||||
345678903456789
|
||||
4
libexec/httpd/testsuite/t9.in
Normal file
4
libexec/httpd/testsuite/t9.in
Normal file
@@ -0,0 +1,4 @@
|
||||
GET /file HTTP/1.1
|
||||
Host:
|
||||
Range: bytes=32-63
|
||||
|
||||
12
libexec/httpd/testsuite/t9.out
Normal file
12
libexec/httpd/testsuite/t9.out
Normal file
@@ -0,0 +1,12 @@
|
||||
HTTP/1.1 206 Partial Content
|
||||
Date: Sun, 02 Mar 2008 08:52:03 GMT
|
||||
Server: bozohttpd/20060710
|
||||
Accept-Ranges: bytes
|
||||
Last-Modified: Sun, 02 Mar 2008 08:44:38 GMT
|
||||
Content-Type: text/plain
|
||||
Content-Range: bytes 32-63/64
|
||||
Content-Length: 32
|
||||
Connection: close
|
||||
|
||||
234567892345678
|
||||
012345670123456
|
||||
27
libexec/httpd/testsuite/test-bigfile
Executable file
27
libexec/httpd/testsuite/test-bigfile
Executable file
@@ -0,0 +1,27 @@
|
||||
#! /bin/sh
|
||||
|
||||
test="$1" # partial4000 or partial8000
|
||||
bozohttpd="$2"
|
||||
wget="$3"
|
||||
datadir="$4"
|
||||
|
||||
bozotestport=11111
|
||||
|
||||
# copy beginning file
|
||||
cp ./data/bigfile.${test} ./bigfile
|
||||
|
||||
# fire up bozohttpd
|
||||
${bozohttpd} -b -b -I ${bozotestport} -n -s -f ${datadir} &
|
||||
bozopid=$!
|
||||
|
||||
${wget} -c http://localhost:${bozotestport}/bigfile
|
||||
|
||||
kill -9 $bozopid
|
||||
|
||||
if cmp ./bigfile ./data/bigfile; then
|
||||
rm -f ./bigfile
|
||||
exit 0
|
||||
else
|
||||
rm -f ./bigfile
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user