6 test -z "$tmpdir" && tmpdir
=/tmp
7 tmpf
="${tmpdir}/bnch$$"
15 test -z "$bpid" ||
kill -9 $bpid
26 trap catch HUP INT QUIT TERM
28 .
/beanstalkd
-p $port >/dev
/null
2>/dev
/null
&
32 if ! ps
$bpid >/dev
/null
; then
33 echo "Could not start beanstalkd for testing, port $port is taken"
38 fgrep
-v "#" $commands |
$nc $server $port > "$tmpf"
41 diff $expected "$tmpf"