summaryrefslogtreecommitdiff
path: root/benchmarks/unixbench/files/patch-Run
blob: 77dcee755c7707f0aeb687f328f366677905ee97 (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
--- Run.orig	1999-07-28 22:04:47 UTC
+++ Run
@@ -88,11 +88,11 @@ else
 fi
 
 # check that the required files are in the proper places
-if make check; then
-        :
-else
-	make all
-fi
+#if make check; then
+#        :
+#else
+#	make all
+#fi
 
 
 # establish full paths to directories
@@ -114,7 +114,7 @@ cd $SCRPDIR
 SCRPDIR=`pwd`
 cd $_WD
 
-TMPDIR=${HOMEDIR}/tmp
+TMPDIR=${TMPDIR-${HOMEDIR}/tmp}
 cd $TMPDIR
 TMPDIR=`pwd`
 cd $_WD
@@ -367,10 +367,11 @@ do				# line argument processing
 	C)  
 		logmsg="C Compiler Throughput"
 		prog="looper ${looper-60} ${CC} cctest.c"
+		prog="looper ${looper-60} ${CC} cctest.c -o ${TMPDIR}/a.out"
 		stdout=/dev/null
 		repeat="$shortloop"
 		cleanopt="-m $TMPTIMES"
-		rm -f ${TESTDIR}/cctest.o ${TESTDIR}/a.out
+		rm -f ${TESTDIR}/cctest.o ${TMPDIR}/a.out
 		;;
 
 	arithoh)
@@ -385,8 +386,8 @@ do				# line argument processing
 
 	dc)  
 		logmsg="Dc: sqrt(2) to 99 decimal places"
-		prog="looper ${looper-30} dc"
-		stdin=dc.dat
+		prog="looper ${looper-30} \"dc < ${TESTDIR}/dc.dat\""
+		stdin=
 		stdout=/dev/null
 		cleanopt="-m $TMPTIMES"
 		;;
@@ -508,7 +509,7 @@ do				# line argument processing
     ########### some specific cleanup routines ##############
     case $bench in
       C)
-      rm -f ${TESTDIR}/cctest.o ${TESTDIR}/a.out
+      rm -f ${TESTDIR}/cctest.o ${TMPDIR}/a.out
       ;;
 
       fstime | fsbuffer | fsdisk)