diff options
Diffstat (limited to 'qa/workunits/suites/bonnie.sh')
-rwxr-xr-x | qa/workunits/suites/bonnie.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/qa/workunits/suites/bonnie.sh b/qa/workunits/suites/bonnie.sh new file mode 100755 index 00000000..b60cc6a5 --- /dev/null +++ b/qa/workunits/suites/bonnie.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -e + +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 |