28 |
TESTDIRS= |
TESTDIRS= |
29 |
SKIPDIRS= |
SKIPDIRS= |
30 |
SCRIPT='../tools/tst_2+2' |
SCRIPT='../tools/tst_2+2' |
31 |
|
LOGFILE='tst_2+2_out.log' |
32 |
scrArg='All' |
scrArg='All' |
33 |
COMMAND= |
COMMAND= |
34 |
mpi=0 |
mpi=0 |
99 |
if test -r $xx/$yy/data.tst ; then |
if test -r $xx/$yy/data.tst ; then |
100 |
echo "clean dir:" $xx/$yy |
echo "clean dir:" $xx/$yy |
101 |
cd $xx/$yy |
cd $xx/$yy |
102 |
echo ' ' >> outp.tst_2+2.log |
echo ' ' >> $LOGFILE |
103 |
echo $SCRIPT 4 >> outp.tst_2+2.log |
echo $SCRIPT 4 >> $LOGFILE |
104 |
$SCRIPT 4 >> outp.tst_2+2.log 2>&1 |
$SCRIPT 4 >> $LOGFILE 2>&1 |
105 |
cd $here |
cd $here |
106 |
fi |
fi |
107 |
done |
done |
208 |
else nam=$xx`echo $yy | sed 's/tr_run//'` ; fi |
else nam=$xx`echo $yy | sed 's/tr_run//'` ; fi |
209 |
echo -n "Entering $xx/$yy :" |
echo -n "Entering $xx/$yy :" |
210 |
cd $xx/$yy |
cd $xx/$yy |
211 |
pwd > outp.tst_2+2.log |
pwd > $LOGFILE |
212 |
if test "x$COMMAND" = x ; then |
if test "x$COMMAND" = x ; then |
213 |
echo $SCRIPT $scrArg >> outp.tst_2+2.log ; echo ' ' >> outp.tst_2+2.log |
echo $SCRIPT $scrArg >> $LOGFILE ; echo ' ' >> $LOGFILE |
214 |
$SCRIPT $scrArg >> outp.tst_2+2.log 2>&1 |
$SCRIPT $scrArg >> $LOGFILE 2>&1 |
215 |
out=$? |
out=$? |
216 |
else |
else |
217 |
echo "$SCRIPT $scrArg -command \"$rCommand\"" >> outp.tst_2+2.log |
echo "$SCRIPT $scrArg -command \"$rCommand\"" >> $LOGFILE |
218 |
echo ' ' >> outp.tst_2+2.log |
echo ' ' >> $LOGFILE |
219 |
$SCRIPT $scrArg -command "$rCommand" >> outp.tst_2+2.log 2>&1 |
$SCRIPT $scrArg -command "$rCommand" >> $LOGFILE 2>&1 |
220 |
out=$? |
out=$? |
221 |
fi |
fi |
222 |
case $out in |
case $out in |
231 |
if test $out != '0' ; then |
if test $out != '0' ; then |
232 |
echo " test 2+2=4 FAIL (exit $out)" |
echo " test 2+2=4 FAIL (exit $out)" |
233 |
echo " " |
echo " " |
234 |
tail -5 outp.tst_2+2.log |
tail -5 $LOGFILE |
235 |
echo " " |
echo " " |
236 |
cp -p outp.tst_2+2.log ../../$DRESULTS/$nam.log |
cp -p $LOGFILE ../../$DRESULTS/$nam.log |
237 |
elif test $SAVELOG = 1 ; then |
elif test $SAVELOG = 1 ; then |
238 |
cp -p outp.tst_2+2.log ../../$DRESULTS/$nam.log |
cp -p $LOGFILE ../../$DRESULTS/$nam.log |
239 |
fi |
fi |
240 |
cd $here |
cd $here |
241 |
fi |
fi |