3 .
"$SRCDIR/sh-tests/common.functions"
7 test -z "$tmpdir" && tmpdir
=/tmp
8 tmpf
="${tmpdir}/bnch$$"
9 nc
="$SRCDIR/sh-tests/netcat.py"
14 # Allow generic tests to specify their own behavior completely.
15 test -x $commands && exec $commands
19 test -z "$bpid" ||
kill -9 $bpid
30 trap catch HUP INT QUIT TERM
32 if [ ! -x .
/beanstalkd
]; then
33 echo "Executable ./beanstalkd not found; do you need to compile first?"
37 start_beanstalkd
'' '-z 10'
40 fgrep
-v "#" $commands |
$nc $server $port > "$tmpf"
43 diff $expected "$tmpf"