ceph/qa/workunits/suites/tiobench.sh
Sage Weil 04d10d1028 qa: tiobench workunit: remove timeout
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-20 11:47:24 -07:00

25 lines
372 B
Bash
Executable File

#!/bin/bash -x
die() {
echo $@
exit 1
}
which tiotest || die "you must install the tiobench package"
#timer_fail() {
# echo "timer expired: tiobench has timed out."
# exit 1
#}
#trap timer_fail ALRM
#pid=$$
#( sleep 420 ; kill -14 $pid ) &
for i in `seq 1 10`; do
tiotest -f 20 -t 10 -d . -T -c -D 20 -r 1000 || die "tiotest failed"
done
echo OK.