| 1 |
#!/bin/sh |
| 2 |
# run all the tests that can reasonably run in a batch |
| 3 |
# |
| 4 |
# FLAGS determines the degree of verbosity of the output. |
| 5 |
# Setting it to "-t" give the tersest form of output. |
| 6 |
FLAGS="-t" |
| 7 |
|
| 8 |
RUN= |
| 9 |
|
| 10 |
# remove the old log file |
| 11 |
# |
| 12 |
rm -f run_tests_1.log |
| 13 |
# |
| 14 |
# run the tests |
| 15 |
# |
| 16 |
$RUN ../p020400 ${FLAGS} >> run_tests_1.log 2>&1 |
| 17 |
$RUN ../p021000 ${FLAGS} >> run_tests_1.log 2>&1 |
| 18 |
if [ ! -h bin ] |
| 19 |
then rm -f ./bin; |
| 20 |
ln -fs .. ./bin; |
| 21 |
fi |
| 22 |
ln -fs ../p030100b |
| 23 |
$RUN ../p030100 ${FLAGS} >> run_tests_1.log 2>&1 |
| 24 |
ln -fs ../p030101b |
| 25 |
$RUN ../p030101 ${FLAGS} >> run_tests_1.log 2>&1 |
| 26 |
ln -fs ../p030102 |
| 27 |
$RUN ../p030102 ${FLAGS} >> run_tests_1.log 2>&1 |
| 28 |
$RUN ../p030200 ${FLAGS} >> run_tests_1.log 2>&1 |
| 29 |
$RUN ../p030300 ${FLAGS} >> run_tests_1.log 2>&1 |
| 30 |
ln -fs ../p030301b |
| 31 |
$RUN ../p030301 ${FLAGS} >> run_tests_1.log 2>&1 |
| 32 |
$RUN ../p030303 ${FLAGS} >> run_tests_1.log 2>&1 |
| 33 |
$RUN ../p030304 ${FLAGS} >> run_tests_1.log 2>&1 |
| 34 |
$RUN ../p030305 ${FLAGS} >> run_tests_1.log 2>&1 |
| 35 |
ln -fs ../p030306a |
| 36 |
$RUN ../p030306 ${FLAGS} >> run_tests_1.log 2>&1 |
| 37 |
$RUN ../p040100 ${FLAGS} >> run_tests_1.log 2>&1 |
| 38 |
$RUN ../p040101 ${FLAGS} >> run_tests_1.log 2>&1 |
| 39 |
#p040300 requires PWD to be set to the current working directory |
| 40 |
PWD=`pwd` |
| 41 |
export PWD |
| 42 |
$RUN ../p040300 ${FLAGS} >> run_tests_1.log 2>&1 |
| 43 |
$RUN ../p040301 ${FLAGS} >> run_tests_1.log 2>&1 |
| 44 |
$RUN ../p050100 ${FLAGS} >> run_tests_1.log 2>&1 |
| 45 |
$RUN ../p050200 ${FLAGS} >> run_tests_1.log 2>&1 |
| 46 |
umask 033 |
| 47 |
$RUN ../p050300 ${FLAGS} >> run_tests_1.log 2>&1 |
| 48 |
# p060100 requires Standard_Error to be a terminal device |
| 49 |
$RUN ../p060100 ${FLAGS} >> run_tests_1.log |
| 50 |
$RUN ../p060200 ${FLAGS} >> run_tests_1.log 2>&1 |
| 51 |
$RUN ../p060300 ${FLAGS} >> run_tests_1.log 2>&1 |
| 52 |
$RUN ../p090100 ${FLAGS} >> run_tests_1.log 2>&1 |
| 53 |
$RUN ../p090200 ${FLAGS} >> run_tests_1.log 2>&1 |
| 54 |
# ../p060100 ${FLAGS} >> run_tests_1.log 2>&1 |
| 55 |
# ../p060200 ${FLAGS} >> run_tests_1.log 2>&1 |
| 56 |
# ../p060300 ${FLAGS} >> run_tests_1.log 2>&1 |
| 57 |
# p070200 requires Standard_Error to be a terminal device |
| 58 |
# and (apparently) cannot be run in background without hanging |
| 59 |
# on attempt to set terminal characteristics "after output" |
| 60 |
# or "after input and output". |
| 61 |
$RUN ../p070200 ${FLAGS} >> run_tests_1.log 2>&1 |
| 62 |
$RUN ../p090100 ${FLAGS} >> run_tests_1.log 2>&1 |
| 63 |
$RUN ../p090200 ${FLAGS} >> run_tests_1.log 2>&1 |
| 64 |
$RUN ../p110100 ${FLAGS} >> run_tests_1.log 2>&1 |
| 65 |
# p110101 required raising ulimit -v to 20000 |
| 66 |
$RUN ../p110101 ${FLAGS} >> run_tests_1.log 2>&1 |
| 67 |
$RUN ../p110200 ${FLAGS} >> run_tests_1.log 2>&1 |
| 68 |
$RUN ../p110201 ${FLAGS} >> run_tests_1.log 2>&1 |
| 69 |
$RUN ../p110300 ${FLAGS} >> run_tests_1.log 2>&1 |
| 70 |
$RUN ../p120100 ${FLAGS} >> run_tests_1.log 2>&1 |
| 71 |
# p120101 should really be run without resource limits |
| 72 |
ln -fs ../p120101 |
| 73 |
$RUN ../p120101 ${FLAGS} >> run_tests_1.log 2>&1 |
| 74 |
$RUN ../p120200 ${FLAGS} >> run_tests_1.log 2>&1 |
| 75 |
$RUN ../p120300 ${FLAGS} >> run_tests_1.log 2>&1 |
| 76 |
$RUN ../p120400 ${FLAGS} >> run_tests_1.log 2>&1 |
| 77 |
$RUN ../p120500 ${FLAGS} >> run_tests_1.log 2>&1 |
| 78 |
$RUN ../p120501 ${FLAGS} >> run_tests_1.log 2>&1 |
| 79 |
ln -fs ../p120502a |
| 80 |
$RUN ../p120502 ${FLAGS} >> run_tests_1.log 2>&1 |
| 81 |
$RUN ../p140100 ${FLAGS} >> run_tests_1.log 2>&1 |
| 82 |
$RUN ../p140101 ${FLAGS} >> run_tests_1.log 2>&1 |
| 83 |
ln -fs ../p150100b |
| 84 |
$RUN ../p150100 ${FLAGS} >> run_tests_1.log 2>&1 |
| 85 |
$RUN ../p150101 ${FLAGS} >> run_tests_1.log 2>&1 |
| 86 |
# Run the following tests by hand, since they take a very long |
| 87 |
# time to run and generally exceed the resource and time limits set |
| 88 |
# in this script to catch infinite loops. |
| 89 |
# ../p990010 ${FLAGS} >> run_tests_1.log 2>&1 |
| 90 |
# ../p990011 ${FLAGS} >> run_tests_1.log 2>&1 |
| 91 |
# ../p990020 ${FLAGS} >> run_tests_1.log 2>&1 |
| 92 |
# ../p990030 ${FLAGS} >> run_tests_1.log 2>&1 |
| 93 |
# ../p990040 ${FLAGS} >> run_tests_1.log 2>&1 |
| 94 |
# ../p990050 ${FLAGS} >> run_tests_1.log 2>&1 |
| 95 |
# ../p990060 ${FLAGS} >> run_tests_1.log 2>&1 |
| 96 |
# ../p990070 ${FLAGS} >> run_tests_1.log 2>&1 |
| 97 |
# ../p990080 ${FLAGS} >> run_tests_1.log 2>&1 |
| 98 |
# ../p990090 ${FLAGS} >> run_tests_1.log 2>&1 |