summaryrefslogtreecommitdiff
path: root/packages/lmbench/lmbench-2.0.4/lmbench-run
diff options
context:
space:
mode:
Diffstat (limited to 'packages/lmbench/lmbench-2.0.4/lmbench-run')
-rw-r--r--packages/lmbench/lmbench-2.0.4/lmbench-run23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/lmbench/lmbench-2.0.4/lmbench-run b/packages/lmbench/lmbench-2.0.4/lmbench-run
index e69de29bb2..3674f6d265 100644
--- a/packages/lmbench/lmbench-2.0.4/lmbench-run
+++ b/packages/lmbench/lmbench-2.0.4/lmbench-run
@@ -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"