summaryrefslogtreecommitdiffstats
path: root/benchmarks/unixbench/files/patch-aa
blob: ca94d39f53f7c8ed3128b2378c141ad8cc0937b5 (plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
*** Makefile.orig	Wed Feb  5 11:08:43 1992
--- Makefile	Mon Jan  1 23:20:07 1996
***************
*** 25,33 ****
  ID="@(#)Makefile:3.9 -- 5/15/91 19:30:15";
  SHELL = /bin/sh
! #HZ = ????  	   #(read from environment)
  CFLAGS = -DTIME
! OPTON = -O        #optimization on (give it your best shot) 
!                   #            -- check your compiler man
! OPTOFF = -Od      #optimization off -- check your compiler man
  # local directories
  PROGDIR = ./pgms
--- 25,34 ----
  ID="@(#)Makefile:3.9 -- 5/15/91 19:30:15";
  SHELL = /bin/sh
! HZ = 128
  CFLAGS = -DTIME
! OPTON = -s -static -O -m486 -finline-functions -funroll-loops -fomit-frame-pointer
!                           #optimization on (give it your best shot) 
!                           #            -- check your compiler man
! OPTOFF = -O0 -static      #optimization off -- check your compiler man
  # local directories
  PROGDIR = ./pgms
***************
*** 36,40 ****
  TESTDIR = ./testdir
! RESULTDIR = ./results
! TMPDIR = ./tmp
  # other directories
  INCLDIR = /usr/include
--- 37,41 ----
  TESTDIR = ./testdir
! # RESULTDIR = ./results
! # TMPDIR = /var/tmp
  # other directories
  INCLDIR = /usr/include
*** Run.orig	Wed Feb  5 11:08:46 1992
--- Run	Wed Jan  3 00:13:43 1996
***************
*** 41,45 ****
  #	awk cat cc chmod comm cp date dc df echo ed expr
  #	kill ls make mkdir rm sed test time touch tty umask who
! #       AND /bin/time
  #  to generate result indexes, you will also need ...
  #       join
--- 41,45 ----
  #	awk cat cc chmod comm cp date dc df echo ed expr
  #	kill ls make mkdir rm sed test time touch tty umask who
! #       AND /usr/bin/time
  #  to generate result indexes, you will also need ...
  #       join
***************
*** 51,55 ****
  then
     # determine flavor of UNIX from number of lines generated by /bin/tim
!    Fcount=`/bin/time date 2>&1 | wc -l | sed 's/ //g'`
     case "$Fcount"
     in
--- 51,55 ----
  then
     # determine flavor of UNIX from number of lines generated by /bin/tim
!    Fcount=`/usr/bin/time date 2>&1 | wc -l | sed 's/ //g'`
     case "$Fcount"
     in
***************
*** 68,75 ****
  export FLAVOR
  # check that the required files are in the proper places
! if make check 
!         then :
!         else make all
! fi
  #
  #
--- 68,75 ----
  export FLAVOR
  # check that the required files are in the proper places
! #if make check 
! #        then :
! #        else make all
! #fi
  #
  #
***************
*** 93,97 ****
  cd $PWD
  
! TMPDIR=${HOMEDIR}/tmp
  cd $TMPDIR
  TMPDIR=`pwd`
--- 93,97 ----
  cd $PWD
  
! TMPDIR=${TMPDIR-${HOMEDIR}/tmp}
  cd $TMPDIR
  TMPDIR=`pwd`
***************
*** 304,312 ****
    C)  
      logmsg="C Compiler Test"
!     prog="looper ${looper-60} cc cctest.c"
      stdout=/dev/null
      repeat="$shortloop"
      cleanopt="-m $TMPTIMES"
!     rm -f ${TESTDIR}/cctest.o ${TESTDIR}/a.out
      ;;
  
--- 304,312 ----
    C)  
      logmsg="C Compiler Test"
!     prog="looper ${looper-60} cc cctest.c -o ${TMPDIR}/a.out"
      stdout=/dev/null
      repeat="$shortloop"
      cleanopt="-m $TMPTIMES"
!     rm -f ${TESTDIR}/cctest.o ${TMPDIR}/a.out
      ;;
  
***************
*** 418,426 ****
            if test "$stdin" = ""  
            then # without redirected stdin
!              /bin/time $prog $opt $bgstr 2>>$TMPTIMES >>$stdout
            else # with redirected stdin
!              /bin/time $prog $opt $bgstr <$stdin 2>>$TMPTIMES >>$stdout
            fi 
- 	  /bin/time $benchcmd
  	  ###############################################
  	  cd $pwd                    # move back home
--- 418,425 ----
            if test "$stdin" = ""  
            then # without redirected stdin
!              /usr/bin/time $prog $opt $bgstr 2>>$TMPTIMES >>$stdout
            else # with redirected stdin
!              /usr/bin/time $prog $opt $bgstr <$stdin 2>>$TMPTIMES >>$stdout
            fi 
  	  ###############################################
  	  cd $pwd                    # move back home
*** pgms/cleanup.sh.orig	Wed Feb  5 11:08:37 1992
--- pgms/cleanup.sh	Wed Jan  3 19:27:21 1996
***************
*** 87,92 ****
      
      -r) : reason for failure
! 	echo $1
! 	echo $1 >>$LOGFILE
  	shift
  	;;
--- 87,92 ----
      
      -r) : reason for failure
! 	echo -e $1
! 	echo -e $1 >>$LOGFILE
  	shift
  	;;
*** pgms/multi.sh.orig	Thu Jan  4 15:16:20 1996
--- pgms/multi.sh	Thu Jan  4 15:17:26 1996
***************
*** 15,18 ****
--- 15,19 ----
  ###############################################################################
  ID="@(#)multi.sh:3.4 -- 5/15/91 19:30:24";
+ cd $TMPDIR
  for i
  do
OpenPOWER on IntegriCloud