summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2009-05-23 02:21:19 +0000
committermrg <mrg@NetBSD.org>2009-05-23 02:21:19 +0000
commit36a7970f3ca969e60c2740bc8a6eebfb895840c0 (patch)
treeaed66ea928bf1367ccad26b18e0542a2fc4c5d80 /libexec
parentc131490c299696c5752611efc53b6ca5806416a7 (diff)
import bozohttpd 20090522, which has these changes:
o close more leaking file descriptors for CGI and daemon mode o add subdirs for build "debug" and "small" versions o clean up a bad merge / duplicate code o make mmap() usage portable, fixes linux & ranges: support o document the -f option o daemon mode now serves 6 files per child
Diffstat (limited to 'libexec')
-rw-r--r--libexec/httpd/debug/Makefile9
-rw-r--r--libexec/httpd/small/Makefile29
-rw-r--r--libexec/httpd/testsuite/data/bigfile127
-rw-r--r--libexec/httpd/testsuite/data/bigfile.partial400050
-rw-r--r--libexec/httpd/testsuite/data/bigfile.partial8000100
-rwxr-xr-xlibexec/httpd/testsuite/test-bigfile27
6 files changed, 342 insertions, 0 deletions
diff --git a/libexec/httpd/debug/Makefile b/libexec/httpd/debug/Makefile
new file mode 100644
index 00000000000..971b605f11d
--- /dev/null
+++ b/libexec/httpd/debug/Makefile
@@ -0,0 +1,9 @@
+# $eterna: Makefile,v 1.1 2009/05/22 21:51:39 mrg Exp $
+
+# build a debug bozohttpd
+PROG= bozohttpd-debug
+COPTS+= -DDEBUG -I$(.CURDIR)/..
+
+.include "../Makefile"
+
+.PATH: $(.CURDIR)/..
diff --git a/libexec/httpd/small/Makefile b/libexec/httpd/small/Makefile
new file mode 100644
index 00000000000..dd5795600bc
--- /dev/null
+++ b/libexec/httpd/small/Makefile
@@ -0,0 +1,29 @@
+# $eterna: Makefile,v 1.1 2009/05/22 21:51:39 mrg Exp $
+
+# build a 100% lean bozohttpd-small.c
+PROG= bozohttpd-small
+NOMAN= # defined
+SRCS= bozohttpd-small.c content-bozo-small.c
+
+LEAN_IFDEF_FLAGS= -UDEBUG -DNO_USER_SUPPORT \
+ -DNO_CGIBIN_SUPPORT -DNO_DIRINDEX_SUPPORT \
+ -DNO_DAEMON_MODE -DNO_DYNAMIC_CONTENT \
+ -DNO_SSL_SUPPORT -UDO_HTPASSWD
+
+CFLAGS= -I$(.CURDIR)/.. ${LEAN_IFDEF_FLAGS}
+
+bozohttpd-small.c: bozohttpd.c
+ unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
+ if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
+ mv -f $@.tmp $@
+
+content-bozo-small.c: content-bozo.c
+ unifdef $(LEAN_IFDEF_FLAGS) < $> > $@.tmp ;\
+ if [ $$? -ne 1 ]; then echo "unifdef returned $?, expecting 1" 2>&1; false; fi
+ mv -f $@.tmp $@
+
+CLEANFILES+= content-bozo-small.c bozohttpd-small.c
+
+.PATH: $(.CURDIR)/..
+
+.include <bsd.prog.mk>
diff --git a/libexec/httpd/testsuite/data/bigfile b/libexec/httpd/testsuite/data/bigfile
new file mode 100644
index 00000000000..812c4c3b380
--- /dev/null
+++ b/libexec/httpd/testsuite/data/bigfile
@@ -0,0 +1,127 @@
+this is the big data file. it has to be over 1 page size in length. 0123456789
+these lines are all 80 long. this is the second line. 012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+012345678901 this is the seventh line. 12345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+456789 this is the 13th line, and there 127 lines in total. 67890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+901234567890123456789012345 this is the 18th line. 456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+78901234567890123456 this is the 31st line. 345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+90123456789012345678901234567890123456789 this is the 38th line. 78901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+012345678901234567890123456 this is the 47th line. 4567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+789012345678901234567890123456789012345678901234567 50th 7890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+56789012 this is the 52nd line. 1234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012 54th 1234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345 this is the 60th line. 2345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+678901234 this is the 71st line. 12345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567 this is the 80th line. 567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456 this is the 93th line. 3456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+6789012345678901234567890123456 this is the 101st line. 456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+123456789012345678901234567890123456789012345 this is the 106th line. 3456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+789012345678901234 110th 4567890123456789012345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+34567890123456789012345678 114th 9012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+67890123 this is the 121st line. 12345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+this is the last line. this is the end of the file. there is no more. good bye.
diff --git a/libexec/httpd/testsuite/data/bigfile.partial4000 b/libexec/httpd/testsuite/data/bigfile.partial4000
new file mode 100644
index 00000000000..5534f688aef
--- /dev/null
+++ b/libexec/httpd/testsuite/data/bigfile.partial4000
@@ -0,0 +1,50 @@
+this is the big data file. it has to be over 1 page size in length. 0123456789
+these lines are all 80 long. this is the second line. 012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+012345678901 this is the seventh line. 12345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+456789 this is the 13th line, and there 127 lines in total. 67890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+901234567890123456789012345 this is the 18th line. 456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+78901234567890123456 this is the 31st line. 345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+90123456789012345678901234567890123456789 this is the 38th line. 78901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+012345678901234567890123456 this is the 47th line. 4567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+789012345678901234567890123456789012345678901234567 50th 7890123456789012345
diff --git a/libexec/httpd/testsuite/data/bigfile.partial8000 b/libexec/httpd/testsuite/data/bigfile.partial8000
new file mode 100644
index 00000000000..372d3890724
--- /dev/null
+++ b/libexec/httpd/testsuite/data/bigfile.partial8000
@@ -0,0 +1,100 @@
+this is the big data file. it has to be over 1 page size in length. 0123456789
+these lines are all 80 long. this is the second line. 012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+012345678901 this is the seventh line. 12345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+456789 this is the 13th line, and there 127 lines in total. 67890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+901234567890123456789012345 this is the 18th line. 456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+78901234567890123456 this is the 31st line. 345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+90123456789012345678901234567890123456789 this is the 38th line. 78901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+012345678901234567890123456 this is the 47th line. 4567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+789012345678901234567890123456789012345678901234567 50th 7890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+56789012 this is the 52nd line. 1234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012 54th 1234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345 this is the 60th line. 2345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+678901234 this is the 71st line. 12345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567 this is the 80th line. 567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456789012345678901234567890123456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
+6789012345678901234567890123456789012345678901234567890123456789012345678901234
+5678901234567890123456789012345678901234567890123456789012345678901234567890123
+4567890123456 this is the 93th line. 3456789012345678901234567890123456789012
+3456789012345678901234567890123456789012345678901234567890123456789012345678901
+2345678901234567890123456789012345678901234567890123456789012345678901234567890
+1234567890123456789012345678901234567890123456789012345678901234567890123456789
+0123456789012345678901234567890123456789012345678901234567890123456789012345678
+9012345678901234567890123456789012345678901234567890123456789012345678901234567
+8901234567890123456789012345678901234567890123456789012345678901234567890123456
+7890123456789012345678901234567890123456789012345678901234567890123456789012345
diff --git a/libexec/httpd/testsuite/test-bigfile b/libexec/httpd/testsuite/test-bigfile
new file mode 100755
index 00000000000..0f33dcfc7f8
--- /dev/null
+++ b/libexec/httpd/testsuite/test-bigfile
@@ -0,0 +1,27 @@
+#! /bin/sh
+
+test="$1" # partial4000 or partial8000
+bozohttpd="$2"
+wget="$3"
+datadir="$4"
+
+bozotestport=11111
+
+# copy beginning file
+cp ./data/bigfile.${test} ./bigfile
+
+# fire up bozohttpd
+${bozohttpd} -b -b -I ${bozotestport} -n -s -f ${datadir} &
+bozopid=$!
+
+${wget} -c http://localhost:${bozotestport}/bigfile
+
+kill -9 $bozopid
+
+if cmp ./bigfile ./data/bigfile; then
+ rm -f ./bigfile
+ exit 0
+else
+ rm -f ./bigfile
+ exit 1
+fi