xref: /minix/libexec/httpd/testsuite/test-bigfile (revision 340f5e56)
1#! /bin/sh
2
3test="$1"	# partial4000 or partial8000
4bozohttpd="$2"
5wget="$3"
6datadir="$4"
7
8bozotestport=11111
9
10# copy beginning file
11cp ./data/bigfile.${test} ./bigfile
12
13# fire up bozohttpd
14${bozohttpd} -b -b -I ${bozotestport} -n -s -f ${datadir} &
15bozopid=$!
16
17${wget} -c http://localhost:${bozotestport}/bigfile
18
19kill -9 $bozopid
20
21if cmp ./bigfile ./data/bigfile; then
22	rm -f ./bigfile
23	exit 0
24else
25	rm -f ./bigfile
26	exit 1
27fi
28