diff options
author | Chris Larson <clarson@kergoth.com> | 2004-05-26 05:06:38 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-05-26 05:06:38 +0000 |
commit | 22fe6f8945893000083412a7d266109d5209523c (patch) | |
tree | f33f665ff4fd55ce4e7c3a805cb2b9de843e54c9 | |
parent | 9a4cd574935ad297a367bc13a00aa84b59bc9a32 (diff) |
Fix the lmbench-run script.
BKrev: 40b425deAjzl_K_M9Crlmxmgj9Kazw
-rw-r--r-- | lmbench/lmbench-2.0.4/lmbench-run | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lmbench/lmbench-2.0.4/lmbench-run b/lmbench/lmbench-2.0.4/lmbench-run index e69de29bb2..3674f6d265 100644 --- a/lmbench/lmbench-2.0.4/lmbench-run +++ b/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" |