summaryrefslogtreecommitdiff
path: root/lmbench/lmbench-2.0.4/lmbench-run
blob: 3674f6d2659485c0451b7425e0dce57172101e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"