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