-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackaged-runtests-el8.patch
More file actions
358 lines (355 loc) · 10.2 KB
/
packaged-runtests-el8.patch
File metadata and controls
358 lines (355 loc) · 10.2 KB
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
--- a/test/runtests 2020-12-16 10:12:27.093075638 -0500
+++ b/test/runtests 2020-12-16 10:15:04.924143621 -0500
@@ -7,9 +7,10 @@
## See COPYRIGHT in top-level directory
##
-prefix=/usr
-exec_prefix=/usr
-bindir=/usr/lib64/mpich/bin
+prefix=/usr/lib64/mpich
+exec_prefix=/usr/lib64/mpich
+bindir=/usr/lib64/mpich/bin
+testsdir=${0%/*}
mpirun="${bindir}/mpiexec"
STOPFILE=${MPITEST_STOPTEST:-"$HOME/.stopmpichtests"}
#
@@ -29,7 +30,7 @@
;;
-margs=*)
shift
- margs=`echo $arg | sed 's/-margs=//'`
+ margs=$(echo $arg | sed 's/-margs=//')
args="$args $margs"
;;
-echo)
@@ -52,7 +53,7 @@
subset_only=1
;;
-fname=*)
- FILENAME=`echo $arg|sed 's/-*fname=//'`
+ FILENAME=$(echo $arg|sed 's/-*fname=//')
;;
-atend)
shift
@@ -87,7 +88,7 @@
echo "Found stopfile; exiting"
exit 0
fi
- if [ ! -x $1 ] ; then
+ if [ ! -x $testsdir/$1 ] ; then
$MAKE $1
if [ ! -x $1 ] ; then
echo "Could not build executable $1; aborting tests"
@@ -105,9 +106,9 @@
OutTime() {
if [ $quiet = 0 ] ; then
if [ -z "$hostname" ] ; then
- hostname=`hostname`
+ hostname=$(hostname)
fi
- d=`date`
+ d=$(date)
echo "$hostname : $d"
fi
}
@@ -154,13 +155,13 @@
MakeExe simple
rm -rf $FILENAME*
echo "**** Testing ${1}.c ****"
- mpirun -np 4 ./${1} -fname $FILENAME "$@" >>${1}.out 2>1
+ mpirun -np 4 $testsdir/${1} -fname $FILENAME "$@" >>${1}.out 2>1
CheckOutput ${1}
CleanExe ${1}
}
# If the programs are not available, run make.
-if [ ! -x simple -a $makeeach = 0 ] ; then
+if [ ! -x $testsdir/simple -a $makeeach = 0 ] ; then
$MAKE default
fi
#
@@ -175,7 +176,7 @@
MakeExe simple
\rm -f $FILENAME*
echo '**** Testing simple.c ****'
-$mpirun -np 4 ./simple -fname $FILENAME
+$mpirun -np 4 $testsdir/simple -fname $FILENAME
# CheckOutput simple
CleanExe simple
#
@@ -185,7 +186,7 @@
MakeExe async
\rm -f $FILENAME*
echo '**** Testing async.c ****'
-$mpirun -np 4 ./async -fname $FILENAME
+$mpirun -np 4 $testsdir/async -fname $FILENAME
# CheckOutput async
CleanExe async
#
@@ -195,7 +196,7 @@
MakeExe async-multiple
\rm -f $FILENAME*
echo '**** Testing async-multiple.c ****'
-$mpirun -np 4 ./async-multiple -fname $FILENAME
+$mpirun -np 4 $testsdir/async-multiple -fname $FILENAME
# CheckOutput async-multiple
CleanExe async-multiple
#
@@ -208,7 +209,7 @@
echo '**** Testing atomicity.c ****'
# Atomicity test recommends at least 8 processes (separate processors
# even better)
- $mpirun -np 4 ./atomicity -fname $FILENAME
+ $mpirun -np 4 $testsdir/atomicity -fname $FILENAME
# CheckOutput atomicity
CleanExe atomicity
#
@@ -219,7 +220,7 @@
MakeExe coll_test
\rm -f $FILENAME*
echo '**** Testing coll_test.c ****'
-$mpirun -np 4 ./coll_test -fname $FILENAME
+$mpirun -np 4 $testsdir/coll_test -fname $FILENAME
# CheckOutput coll_test
CleanExe coll_test
#
@@ -229,7 +230,7 @@
MakeExe excl
\rm -f $FILENAME*
echo '**** Testing excl.c ****'
-$mpirun -np 4 ./excl -fname $FILENAME
+$mpirun -np 4 $testsdir/excl -fname $FILENAME
# CheckOutput excl
CleanExe excl
#
@@ -239,7 +240,7 @@
MakeExe file_info
\rm -f $FILENAME*
echo '**** Testing file_info.c ****'
-$mpirun -np 4 ./file_info -fname $FILENAME
+$mpirun -np 4 $testsdir/file_info -fname $FILENAME
# CheckOutput file_info
CleanExe file_info
#
@@ -249,7 +250,7 @@
MakeExe i_noncontig
\rm -f $FILENAME*
echo '**** Testing i_noncontig.c ****'
-$mpirun -np 2 ./i_noncontig -fname $FILENAME
+$mpirun -np 2 $testsdir/i_noncontig -fname $FILENAME
# CheckOutput i_noncontig
CleanExe i_noncontig
#
@@ -259,7 +260,7 @@
MakeExe noncontig
\rm -f $FILENAME*
echo '**** Testing noncontig.c ****'
-$mpirun -np 2 ./noncontig -fname $FILENAME
+$mpirun -np 2 $testsdir/noncontig -fname $FILENAME
# CheckOutput noncontig
CleanExe noncontig
#
@@ -269,7 +270,7 @@
MakeExe noncontig_coll
\rm -f $FILENAME*
echo '**** Testing noncontig_coll.c ****'
-$mpirun -np 2 ./noncontig_coll -fname $FILENAME
+$mpirun -np 2 $testsdir/noncontig_coll -fname $FILENAME
# CheckOutput noncontig_coll
CleanExe noncontig_coll
#
@@ -279,30 +280,30 @@
MakeExe noncontig_coll2
\rm -f $FILENAME*
echo '**** Testing noncontig_coll2.c ****'
-$mpirun -np 4 ./noncontig_coll2 -fname $FILENAME
+$mpirun -np 4 $testsdir/noncontig_coll2 -fname $FILENAME
# CheckOutput noncontig_coll2
CleanExe noncontig_coll2
MakeExe aggregation1
echo '**** Testing aggregation1 ****'
-$mpirun -np 4 ./aggregation1 -h -f $FILENAME
+$mpirun -np 4 $testsdir/aggregation1 -h -f $FILENAME
# CheckOutput aggregation1
CleanExe aggregation1
MakeExe aggregation2
echo '**** Testing aggregation2 ****'
-$mpirun -np 4 ./aggregation2 $FILENAME
+$mpirun -np 4 $testsdir/aggregation2 $FILENAME
# CheckOutput aggregation2
CleanExe aggregation2
MakeExe hindexed
echo '**** Testing hindexed ****'
-$mpirun -np 4 ./hindexed $FILENAME
+$mpirun -np 4 $testsdir/hindexed $FILENAME
# CheckOutput hindexed
CleanExe hindexed
#
#echo '**** Testing write_all_test (run 1)****'
-#$mpirun -np 4 ./write_all_test -nzp 2 -zplace 2 -nzw 2 -naw 2 -size 100 \
+#$mpirun -np 4 $testsdir/write_all_test -nzp 2 -zplace 2 -nzw 2 -naw 2 -size 100 \
# -offm 8 -hints romio_cb_write enable -fname $FILENAME
#echo '**** Testing write_all_test (run 2)****'
-#$mpirun -np 4 ./write_all_test -nzp 2 -zplace 2 -nzw 2 -naw 2 -size 100 \
+#$mpirun -np 4 $testsdir/write_all_test -nzp 2 -zplace 2 -nzw 2 -naw 2 -size 100 \
# -offm 4 -hints romio_cb_write enable -fname $FILENAME
#CleanExe write_all_test
OutTime
@@ -312,7 +313,7 @@
MakeExe misc
\rm -f $FILENAME*
echo '**** Testing misc.c ****'
- $mpirun -np 4 ./misc -fname $FILENAME
+ $mpirun -np 4 $testsdir/misc -fname $FILENAME
# CheckOutput misc
CleanExe misc
#
@@ -324,7 +325,7 @@
MakeExe shared_fp
\rm -f $FILENAME*
echo '**** Testing shared_fp.c ****'
- $mpirun -np 4 ./shared_fp -fname $FILENAME
+ $mpirun -np 4 $testsdir/shared_fp -fname $FILENAME
# CheckOutput shared_fp
CleanExe shared_fp
#
@@ -334,7 +335,7 @@
MakeExe ordered_fp
\rm -f $FILENAME*
echo '**** Testing ordered_fp.c ****'
- $mpirun -np 4 ./ordered_fp -fname $FILENAME
+ $mpirun -np 4 $testsdir/ordered_fp -fname $FILENAME
CleanExe ordered_fp
#
OutTime
@@ -344,7 +345,7 @@
MakeExe split_coll
\rm -f $FILENAME*
echo '**** Testing split_coll.c ****'
-$mpirun -np 4 ./split_coll -fname $FILENAME
+$mpirun -np 4 $testsdir/split_coll -fname $FILENAME
# CheckOutput split_coll
CleanExe split_coll
#
@@ -354,7 +355,7 @@
MakeExe psimple
\rm -f $FILENAME*
echo '**** Testing psimple.c ****'
-$mpirun -np 4 ./psimple -fname $FILENAME
+$mpirun -np 4 $testsdir/psimple -fname $FILENAME
# CheckOutput psimple
CleanExe psimple
#
@@ -364,7 +365,7 @@
MakeExe error
\rm -f $FILENAME*
echo '**** Testing error.c ****'
-$mpirun -np 1 ./error -fname $FILENAME
+$mpirun -np 1 $testsdir/error -fname $FILENAME
# CheckOutput error
CleanExe error
#
@@ -375,7 +376,7 @@
\rm -f $FILENAME*
echo '**** Testing status.c ****'
# Some systems have a status program.
-$mpirun -np 1 ./status -fname $FILENAME
+$mpirun -np 1 $testsdir/status -fname $FILENAME
# CheckOutput status
CleanExe status
testfiles="$testfiles types_with_zeros.out"
@@ -383,18 +384,18 @@
MakeExe types_with_zeros
\rm -f $FILENAME*
echo '**** Testing types_with_zeros ****'
-$mpirun -np 2 ./types_with_zeros $FILENAME
+$mpirun -np 2 $testsdir/types_with_zeros $FILENAME
CleanExe types_with_zeros
testfiles="$testfiles darray_read.out"
\rm -f darray_read.out
MakeExe darray_read
\rm -f $FILENAME*
echo '**** Testing darray_read ****'
-$mpirun -np 4 ./darray_read $FILENAME
+$mpirun -np 4 $testsdir/darray_read $FILENAME
CleanExe darray_read
MakeExe syshints
echo '**** Testing syshints ****'
-$mpirun -np 1 ./syshints $srcdir/test_hintfile
+$mpirun -np 1 $testsdir/syshints $testsdir/test_hintfile
CleanExe syshints
#
@@ -408,7 +409,7 @@
MakeExe fmisc
\rm -f $FILENAME*
echo '**** Testing fmisc.f ****'
- $mpirun -np 4 ./fmisc -fname $FILENAME
+ $mpirun -np 4 $testsdir/fmisc -fname $FILENAME
# CheckOutput fmisc
CleanExe fmisc
#
@@ -419,7 +420,7 @@
MakeExe fcoll_test
\rm -f $FILENAME*
echo '**** Testing fcoll_test.f ****'
- $mpirun -np 4 ./fcoll_test -fname $FILENAME
+ $mpirun -np 4 $testsdir/fcoll_test -fname $FILENAME
# CheckOutput fcoll_test
CleanExe fcoll_test
#
@@ -429,7 +430,7 @@
MakeExe pfcoll_test
\rm -f $FILENAME*
echo '**** Testing pfcoll_test.f ****'
- $mpirun -np 4 ./pfcoll_test -fname $FILENAME
+ $mpirun -np 4 $testsdir/pfcoll_test -fname $FILENAME
# CheckOutput pfcoll_test
CleanExe pfcoll_test
#
@@ -438,7 +439,7 @@
#
else
# Just run checks
- testfiles=`echo *.out`
+ testfiles=$(echo *.out)
if test "$testfiles" = "*.out" ; then
echo "No output files remain from previous test!"
exit 1
@@ -450,14 +451,14 @@
# rm -f iotests.diff
# nodiff=1
# for file in $testfiles ; do
-# stdfile="${srcdir}/std/`basename $file .out`.std"
+# stdfile="${srcdir}/std/$(basename $file .out).std"
# # if basename is sendrecv or isndrcv, then we may want to test
# # with .std2 as well. We should really separate out the long double
# # tests ...
# if [ -s $stdfile ] ; then
# stdfile2=${stdfile}2
# # Handle Fortran systems that generate stop statements
-# bfile="`basename $file .out`.tout"
+# bfile="$(basename $file .out).tout"
# rm -f ${bfile}
# grep -v 'FORTRAN STOP' ${file} > ${bfile}
# if diff -b $bfile $stdfile > /dev/null ; then
@@ -467,18 +468,18 @@
# if diff -b $bfile $stdfile2 > /dev/null ; then
# true
# else
-# echo "Differences in `basename $file .out`" >> iotests.diff
+# echo "Differences in $(basename $file .out)" >> iotests.diff
# diff -b $bfile $stdfile >> iotests.diff
# nodiff=0
# fi
# else
-# echo "Differences in `basename $file .out`" >> iotests.diff
+# echo "Differences in $(basename $file .out)" >> iotests.diff
# diff -b $bfile $stdfile >> iotests.diff
# nodiff=0
# fi
# rm -f ${bfile}
# else
-# echo "Can not find file $stdfile to compare against for test `basename $file .out`"
+# echo "Can not find file $stdfile to compare against for test $(basename $file .out)"
# nodiff=0
# fi
# done