3 .
"sh-tests/common.functions"
7 test -z "$tmpdir" && tmpdir
=/tmp
8 out1
="${tmpdir}/bnch$$.1"
9 out2
="${tmpdir}/bnch$$.2"
10 logdir
="${tmpdir}/bnch$$.d"
11 nc
="sh-tests/netcat.py"
15 rm -rf "$logdir" "$out1" "$out2"
24 trap catch HUP INT QUIT TERM
26 if [ ! -x .
/beanstalkd
]; then
27 echo "Executable ./beanstalkd not found; do you need to compile first?"
31 start_beanstalkd
$logdir
33 $nc $server $port <<EOF > "$out1"
60 test "$res" -eq 0 ||
exit $res
65 start_beanstalkd
$logdir
67 $nc $server $port <<EOF > "$out2"