From: Yehuda Sadeh Date: Tue, 8 Dec 2009 00:48:35 +0000 (-0800) Subject: qa: add bonnie++ to the workunits X-Git-Tag: v0.19~289 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9922ae1f55d7d6bee968cde01ed8205a1b6d72f7;p=ceph.git qa: add bonnie++ to the workunits --- diff --git a/qa/runallonce.sh b/qa/runallonce.sh index cf2f411693f3..19d7dfcc3d79 100755 --- a/qa/runallonce.sh +++ b/qa/runallonce.sh @@ -5,6 +5,8 @@ set -e basedir=`echo $0 | sed 's/[^/]*$//g'`. testdir="$1" +[ ${basedir:0:1} == "." ] && basedir=`pwd`/${basedir:1} + test -d $testdir || ( echo "specify test dir" && exit 1 ) cd $testdir @@ -16,4 +18,4 @@ do cd $test ${basedir}/${test} popd -done \ No newline at end of file +done diff --git a/qa/workunits/40_bonnie.sh b/qa/workunits/40_bonnie.sh new file mode 100755 index 000000000000..9b860e00a2a1 --- /dev/null +++ b/qa/workunits/40_bonnie.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +bonnie_bin=`which bonnie++` +[ $? -eq 1 ] && bonnie_bin=/usr/sbin/bonnie++ + +uid_flags="" +[ "`id -u`" == "0" ] && uid_flags="-u root" + +$bonnie_bin $uid_flags -n 100