test-bigfile revision 1.2
11.1Smrg#! /bin/sh
21.1Smrg
31.1Smrgtest="$1"	# partial4000 or partial8000
41.1Smrgbozohttpd="$2"
51.1Smrgwget="$3"
61.1Smrgdatadir="$4"
71.1Smrg
81.1Smrgbozotestport=11111
91.1Smrg
101.1Smrg# copy beginning file
111.2Smrgcp ${datadir}/bigfile.${test} ./bigfile
121.1Smrg
131.1Smrg# fire up bozohttpd
141.1Smrg${bozohttpd} -b -b -I ${bozotestport} -n -s -f ${datadir} &
151.1Smrgbozopid=$!
161.1Smrg
171.1Smrg${wget} -c http://localhost:${bozotestport}/bigfile
181.1Smrg
191.1Smrgkill -9 $bozopid
201.1Smrg
211.2Smrgif cmp ./bigfile ${datadir}/bigfile; then
221.1Smrg	rm -f ./bigfile
231.1Smrg	exit 0
241.1Smrgelse
251.1Smrg	rm -f ./bigfile
261.1Smrg	exit 1
271.1Smrgfi
28