xfstests 241: run parallel dbench
[xfstests-dev.git] / common.dbench
index eec6262f20a33c5ec241740bea00c1e0623f3642..b59be71eda9d838ae73e0f2bdd2a57c68dcea415 100755 (executable)
@@ -1,7 +1,23 @@
-##/bin/sh
+##/bin/bash
+#
+# Copyright (c) 2002-2005 Silicon Graphics, Inc.  All Rights Reserved.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it would be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write the Free Software Foundation,
+# Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+#
 
 #check dbench is installed
-if [ "`whereis dbench`" == "dbench:"]; then
+if [ "`whereis dbench`" == "dbench:" ]; then
         echo $0 error dbench not installed.
         exit
 fi
@@ -10,7 +26,7 @@ _run_dbench()
 {
        mkdir ./dbench || exit 1
        cd dbench
-       dbench $1
+       dbench -x $1
        status=$?
        cd ..
        rm -fr ./dbench