27 |
TESTDIRS= |
TESTDIRS= |
28 |
SKIPDIRS= |
SKIPDIRS= |
29 |
SCRIPT='../tools/tst_2+2' |
SCRIPT='../tools/tst_2+2' |
30 |
|
scrArg='All' |
31 |
COMMAND= |
COMMAND= |
32 |
mpi=0 |
mpi=0 |
33 |
OUTDIR=`hostname` |
OUTDIR=`hostname | sed 's/\..*$//'` |
34 |
SAVELOG=0 |
SAVELOG=0 |
35 |
ADDRESS= |
ADDRESS= |
36 |
MPACK="../tools/mpack-1.6/mpack" |
MPACK="../tools/mpack-1.6/mpack" |
152 |
if test "x$OPTFILE" = x -a -f $xx/build/Makefile ; then |
if test "x$OPTFILE" = x -a -f $xx/build/Makefile ; then |
153 |
comm=`grep '^# OPTFILE=' $xx/build/Makefile 2>/dev/null | head -1 | sed 's/^# //'` |
comm=`grep '^# OPTFILE=' $xx/build/Makefile 2>/dev/null | head -1 | sed 's/^# //'` |
154 |
echo "from '$xx/build/Makefile', extract:" > $DRESULTS/genmake_state |
echo "from '$xx/build/Makefile', extract:" > $DRESULTS/genmake_state |
155 |
|
sed -n '/^# executed by:/,+1 p' $xx/build/Makefile >> $DRESULTS/genmake_state |
156 |
echo $comm >> $DRESULTS/genmake_state |
echo $comm >> $DRESULTS/genmake_state |
157 |
eval $comm |
eval $comm |
158 |
fi |
fi |
162 |
cd $xx/$yy |
cd $xx/$yy |
163 |
pwd > outp.tst_2+2.log |
pwd > outp.tst_2+2.log |
164 |
if test "x$COMMAND" = x ; then |
if test "x$COMMAND" = x ; then |
165 |
echo $SCRIPT All >> outp.tst_2+2.log ; echo ' ' >> outp.tst_2+2.log |
echo $SCRIPT $scrArg >> outp.tst_2+2.log ; echo ' ' >> outp.tst_2+2.log |
166 |
$SCRIPT All >> outp.tst_2+2.log 2>&1 |
$SCRIPT $scrArg >> outp.tst_2+2.log 2>&1 |
167 |
out=$? |
out=$? |
168 |
else |
else |
169 |
echo "$SCRIPT All -command \"$COMMAND\"" >> outp.tst_2+2.log |
echo "$SCRIPT $scrArg -command \"$COMMAND\"" >> outp.tst_2+2.log |
170 |
echo ' ' >> outp.tst_2+2.log |
echo ' ' >> outp.tst_2+2.log |
171 |
$SCRIPT All -command "$COMMAND" >> outp.tst_2+2.log 2>&1 |
$SCRIPT $scrArg -command "$COMMAND" >> outp.tst_2+2.log 2>&1 |
172 |
out=$? |
out=$? |
173 |
fi |
fi |
174 |
case $out in |
case $out in |