File: results

package info (click to toggle)
lmbench 3.0-a9%2Bdebian.1-6
  • links: PTS
  • area: non-free
  • in suites: bookworm
  • size: 2,996 kB
  • sloc: ansic: 12,328; perl: 6,531; sh: 2,784; makefile: 731
file content (39 lines) | stat: -rwxr-xr-x 631 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh

# $Id$

OS=`../scripts/os`
CONFIG=`../scripts/config`
RESULTS=results/$OS
BASE=../$RESULTS/`uname -n`
EXT=0

if [ ! -f "../bin/$OS/$CONFIG" ]
then	echo "No config file?"
	exit 1
fi
. ../bin/$OS/$CONFIG

if [ ! -d ../$RESULTS ]
then	mkdir -p ../$RESULTS
fi
RESULTS=$BASE.$EXT
while [ -f $RESULTS ]
do      EXT=`expr $EXT + 1`
	RESULTS=$BASE.$EXT
done

cd ../bin/$OS 
PATH=.:${PATH}; export PATH
export SYNC_MAX
export OUTPUT
lmbench $CONFIG 2>../${RESULTS}

if [ X$MAIL = Xyes ]
then	echo Mailing results
	(echo ---- $INFO ---
	cat $INFO 
	echo ---- $RESULTS ---
	cat ../$RESULTS) | mail lmbench3@bitmover.com 
fi
exit 0