import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode o add subdirs for build "debug" and "small" versions o clean up a bad merge / duplicate code o make mmap() usage portable, fixes linux & ranges: support o document the -f option o daemon mode now serves 6 files per child
This commit is contained in:
parent
c131490c29
commit
36a7970f3c
|
@ -0,0 +1,9 @@
|
|||
# $eterna: Makefile,v 1.1 2009/05/22 21:51:39 mrg Exp $
|
||||
|
||||
# build a debug bozohttpd
|
||||
PROG= bozohttpd-debug
|
||||
COPTS+= -DDEBUG -I$(.CURDIR)/..
|
||||
|
||||
.include "../Makefile"
|
||||
|
||||
.PATH: $(.CURDIR)/..
|
|
@ -0,0 +1,29 @@
|
|||
# $eterna: Makefile,v 1.1 2009/05/22 21:51:39 mrg Exp $
|
||||
|
||||
# build a 100% lean bozohttpd-small.c
|
||||
PROG= bozohttpd-small
|
||||
NOMAN= # defined
|
||||
SRCS= bozohttpd-small.c content-bozo-small.c
|
||||
|
||||
LEAN_IFDEF_FLAGS= -UDEBUG -DNO_USER_SUPPORT \
|
||||
-DNO_CGIBIN_SUPPORT -DNO_DIRINDEX_SUPPORT \
|
||||
-DNO_DAEMON_MODE -DNO_DYNAMIC_CONTENT \
|
||||
-DNO_SSL_SUPPORT -UDO_HTPASSWD
|
||||
|
||||
CFLAGS= -I$(.CURDIR)/.. ${LEAN_IFDEF_FLAGS}
|
||||
|
||||
bozohttpd-small.c: bozohttpd.c
|
||||
unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
|
||||
if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
|
||||
mv -f $@.tmp $@
|
||||
|
||||
content-bozo-small.c: content-bozo.c
|
||||
unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
|
||||
if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
|
||||
mv -f $@.tmp $@
|
||||
|
||||
CLEANFILES+= content-bozo-small.c bozohttpd-small.c
|
||||
|
||||
.PATH: $(.CURDIR)/..
|
||||
|
||||
.include <bsd.prog.mk>
|
|
@ -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.
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue