Fix the lmbench-run script.
authorChris Larson <clarson@kergoth.com>
Wed, 26 May 2004 05:06:38 +0000 (05:06 +0000)
committerChris Larson <clarson@kergoth.com>
Wed, 26 May 2004 05:06:38 +0000 (05:06 +0000)
BKrev: 40b425deAjzl_K_M9Crlmxmgj9Kazw

lmbench/lmbench-2.0.4/lmbench-run

index e69de29..3674f6d 100644 (file)
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Wrapper script for lmbench written for the 
+# Debian GNU/Linux distribution by 
+# Javier Fernandez-Sanguino.
+# Distributed under the GPL
+SHAREDIR=/usr/share/lmbench/
+BINDIR=/usr/lib/lmbench/
+SCRIPTSDIR=$SHAREDIR/scripts
+RESULTSDIR=$SHAREDIR/results
+CONFIG=$SHAREDIR/config/`$SCRIPTSDIR/config`
+runuid=`id -u`
+
+[ $runuid -gt 0 ] && {
+       echo "You must run this as the root user"
+       exit 0
+}
+cd $SCRIPTSDIR 
+[ ! -f $CONFIG ] && ./config-run
+./results
+
+echo "Benchmark run finished...."
+echo "Remember you can find the results of the benchmark "
+echo "under $RESULTSDIR"