Drop main() prototype. Syncs with NetBSD-8
[minix.git] / libexec / httpd / testsuite / test-bigfile
blob0f33dcfc7f890a4951bd5293656dba5b647a1889
1 #! /bin/sh
3 test="$1" # partial4000 or partial8000
4 bozohttpd="$2"
5 wget="$3"
6 datadir="$4"
8 bozotestport=11111
10 # copy beginning file
11 cp ./data/bigfile.${test} ./bigfile
13 # fire up bozohttpd
14 ${bozohttpd} -b -b -I ${bozotestport} -n -s -f ${datadir} &
15 bozopid=$!
17 ${wget} -c http://localhost:${bozotestport}/bigfile
19 kill -9 $bozopid
21 if cmp ./bigfile ./data/bigfile; then
22 rm -f ./bigfile
23 exit 0
24 else
25 rm -f ./bigfile
26 exit 1