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