11 |
echo |
echo |
12 |
echo "where possible OPTIONS are:" |
echo "where possible OPTIONS are:" |
13 |
echo " (-help|-h) print usage" |
echo " (-help|-h) print usage" |
14 |
echo " (-mpi) use MPI input files" |
echo " (-mth) run multi threaded (using eedata.mth)" |
15 |
|
echo " (-mpi) compile and run using MPI" |
16 |
echo " (-ieee|-noieee) if possible, use IEEE compiler flags" |
echo " (-ieee|-noieee) if possible, use IEEE compiler flags" |
17 |
echo " (DEF=\"-ieee\")" |
echo " (DEF=\"-ieee\")" |
18 |
echo " (-optfile=|-of=)STRING list of optfiles to use" |
echo " (-optfile=|-of=)STRING list of optfiles to use" |
19 |
echo " (-a|-addr) STRING list of email recipients" |
echo " (-a|-addr) STRING list of email recipients" |
20 |
echo " (DEF=\"edhill@mitgcm.org\")" |
echo " (DEF=\"edhill@mitgcm.org\")" |
21 |
echo " (-t|-tdir) STRING list of test dirs to use" |
echo " (-t|-tdir) STRING list of group and/or exp. dirs to test" |
22 |
echo " (DEF=\"\" which builds all)" |
echo " (recognized groups: basic, tutorials)" |
23 |
|
echo " (DEF=\"\" which test all)" |
24 |
echo " (-b|-bash) STRING preferred location of a \"bash\" or" |
echo " (-b|-bash) STRING preferred location of a \"bash\" or" |
25 |
echo " Bourne-compatible \"sh\" shell" |
echo " Bourne-compatible \"sh\" shell" |
26 |
echo " (DEF=\"\" for \"bash\")" |
echo " (DEF=\"\" for \"bash\")" |
183 |
|
|
184 |
testoutput_ad() |
testoutput_ad() |
185 |
{ |
{ |
186 |
grep $3 $1/results_ad/output.txt_adm | awk '{print NR " " $5}' > t05.txt |
grep $3 $1/results_ad/output_adm.txt | awk '{print NR " " $5}' > t05.txt |
187 |
grep $3 $1/$2/output.txt_adm | awk '{print NR " " $5}' > t15.txt |
grep $3 $1/$2/output_adm.txt | awk '{print NR " " $5}' > t15.txt |
188 |
grep $3 $1/results_ad/output.txt_adm | awk '{print NR " " $6}' > t06.txt |
grep $3 $1/results_ad/output_adm.txt | awk '{print NR " " $6}' > t06.txt |
189 |
grep $3 $1/$2/output.txt_adm | awk '{print NR " " $6}' > t16.txt |
grep $3 $1/$2/output_adm.txt | awk '{print NR " " $6}' > t16.txt |
190 |
join t05.txt t15.txt > t5.txt |
join t05.txt t15.txt > t5.txt |
191 |
join t06.txt t16.txt > t6.txt |
join t06.txt t16.txt > t6.txt |
192 |
echo "-1" >> t5.txt |
echo "-1" >> t5.txt |
306 |
command="$command --mods=../code" |
command="$command --mods=../code" |
307 |
else |
else |
308 |
command="$command --mods=../code_ad" |
command="$command --mods=../code_ad" |
|
command="$command -adof=../../../tools/adjoint_options/adjoint_staf" |
|
309 |
fi |
fi |
310 |
if test "x$OPTFILE" != xNONE ; then |
if test "x$OPTFILE" != xNONE ; then |
311 |
command="$command --optfile=$OPTFILE" |
command="$command --optfile=$OPTFILE" |
337 |
{ |
{ |
338 |
# makeclean directory |
# makeclean directory |
339 |
if test "x$NOCLEAN" = xt ; then |
if test "x$NOCLEAN" = xt ; then |
340 |
echo "make CLEAN skipped!" |
echo "make Clean skipped!" |
341 |
else |
else |
342 |
( |
( |
343 |
cd $1; |
cd $1; |
344 |
if test -e output.txt ; then |
#if test -e output.txt ; then rm -f output.txt ; fi |
|
rm -f output.txt |
|
|
fi |
|
|
printf 'make CLEAN ... ' 2>&1 |
|
345 |
if test -r Makefile ; then |
if test -r Makefile ; then |
346 |
$MAKE CLEAN >> make.log 2>&1 |
printf 'clean build-dir: make Clean ... ' 2>&1 |
347 |
|
$MAKE Clean >> make.log 2>&1 |
348 |
RETVAL=$? |
RETVAL=$? |
349 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
350 |
tail make.log |
tail make.log |
351 |
echo "makeclean: \"make CLEAN\" failed" 1>&2 |
echo "makeclean: \"make Clean\" failed" 1>&2 |
352 |
cp make.log $CDIR"/make.log" |
cp make.log $CDIR"/make.log" |
353 |
return 1 |
return 1 |
354 |
fi |
fi |
359 |
fi |
fi |
360 |
} |
} |
361 |
|
|
362 |
postclean() |
run_clean() |
363 |
{ |
{ |
364 |
# postclean directory |
# run_clean directory |
365 |
if test "x$POSTCLEAN" = xt ; then |
if test "x$NOCLEAN" = xt ; then |
366 |
|
echo "run_clean skipped!" |
367 |
|
else |
368 |
( |
( |
369 |
cd $1; |
cd $1; |
370 |
if test -r Makefile ; then |
printf 'clean run-dir ... ' 2>&1 |
371 |
$MAKE CLEAN >> /dev/null 2>&1 |
# part of what is done after "make clean" when doing "make CLEAN" |
372 |
fi |
find . -name "*.meta" -exec rm {} \; |
373 |
|
find . -name "*.data" -exec rm {} \; |
374 |
|
find . -name "fort.*" -exec rm {} \; |
375 |
|
find . -type l -exec rm {} \; |
376 |
|
rm -f $EXECUTABLE *.txt STD* *diagnostics.log datetime |
377 |
|
rm -rf mnc_test_* |
378 |
|
echo successful 1>&2 |
379 |
exit 0 |
exit 0 |
380 |
) |
) |
381 |
fi |
fi |
483 |
|
|
484 |
linkdata() |
linkdata() |
485 |
{ |
{ |
486 |
# linkdata flag |
# linkdata run_dir input_dir_1 input_dir_2 ... |
487 |
# |
# |
488 |
# symbolically link data files to run directory |
# symbolically link data files to run directory |
489 |
if test "x$1" = x1 ; then |
if test -d $1 ; then |
490 |
( |
( |
491 |
cd $2 |
cd $1 ; shift |
492 |
if test "x$ADM" = x ; then |
if test -r "../"$1"/eedata.mth" ; then |
493 |
files=`( cd ../input ; ls -1 | grep -v CVS )` |
# found eedata.mth in 1rst input dir and it is readable |
494 |
for i in $files ; do |
if test "x$MULTI_THREAD" = "xt" ; then |
495 |
if test ! -d "../input/"$i -a ! -f $i ; then |
# multi-threaded test: remove symbolic link & link eedata.mth |
496 |
ln -sf "../input/"$i $i |
if test -h eedata ; then rm -f eedata ; fi |
497 |
|
if test ! -r eedata ; then |
498 |
|
ln -sf "../"$1"/eedata.mth" eedata ; |
499 |
|
printf 'eedata.mth ' 1>&2 |
500 |
fi |
fi |
501 |
done |
else |
502 |
else |
# not multi-threaded test: remove eedata symbolic link |
503 |
files=`( cd ../input ; ls -1 *.bin | grep -v CVS )` |
if test -h eedata ; then rm -f eedata ; fi |
504 |
for i in $files ; do |
fi |
|
if test ! -d "../input/"$i ; then |
|
|
ln -sf "../input/"$i $i |
|
|
fi |
|
|
done |
|
|
files=`( cd ../input_ad ; ls -1 | grep -v CVS )` |
|
|
for i in $files ; do |
|
|
if test ! -d "../input_ad/"$i ; then |
|
|
ln -sf "../input_ad/"$i $i |
|
|
fi |
|
|
done |
|
505 |
fi |
fi |
506 |
|
for ldir in $* ; do |
507 |
|
if test -d "../"$ldir ; then |
508 |
|
printf 'ldir='${ldir} 1>&2 |
509 |
|
files=`( cd "../"$ldir ; ls -1 | grep -v CVS )` |
510 |
|
for i in $files ; do |
511 |
|
if test ! -d "../"$ldir/$i ; then |
512 |
|
if test ! -r $i ; then |
513 |
|
printf ' '$i 1>&2 |
514 |
|
ln -sf "../"$ldir"/"$i $i |
515 |
|
fi |
516 |
|
fi |
517 |
|
done |
518 |
|
if test -x "../"$ldir"/"prepare_run ; then |
519 |
|
"../"$ldir"/"prepare_run |
520 |
|
fi |
521 |
|
printf ' ; ' 1>&2 |
522 |
|
fi |
523 |
|
done |
524 |
) |
) |
525 |
fi |
fi |
526 |
} |
} |
537 |
# make output.txt |
# make output.txt |
538 |
echo |
echo |
539 |
rm -f run.log |
rm -f run.log |
540 |
if test $OUTPUTFILE -ot $EXECUTABLE ; then |
if test ! -x $EXECUTABLE -a -x "../"$builddir"/"$EXECUTABLE ; then |
541 |
( eval $COMMAND ) > run.log 2>&1 |
echo " link" $EXECUTABLE "from dir ../"$builddir > run.log |
542 |
RETVAL=$? |
ln -sf "../"$builddir"/"$EXECUTABLE . |
543 |
|
else |
544 |
|
touch run.log |
545 |
|
fi |
546 |
|
if test ! -x $EXECUTABLE ; then |
547 |
|
echo " no executable:" $EXECUTABLE >> run.log |
548 |
|
RETVAL=8 |
549 |
else |
else |
550 |
echo " $OUTPUTFILE is up to date " > run.log 2>&1 |
if test $OUTPUTFILE -ot $EXECUTABLE ; then |
551 |
RETVAL=0 |
( eval $COMMAND ) >> run.log 2>&1 |
552 |
|
RETVAL=$? |
553 |
|
else |
554 |
|
echo " $OUTPUTFILE is up to date " >> run.log 2>&1 |
555 |
|
RETVAL=0 |
556 |
|
fi |
557 |
fi |
fi |
558 |
# echo "COMMAND='$COMMAND'" |
# echo "COMMAND='$COMMAND'" |
559 |
# echo "pwd='"`pwd`"'" |
# echo "pwd='"`pwd`"'" |
564 |
# if test "x$ADM" = x ; then |
# if test "x$ADM" = x ; then |
565 |
# cp output.txt $CDIR"/output.txt" |
# cp output.txt $CDIR"/output.txt" |
566 |
# else |
# else |
567 |
# cp output.txt_adm $CDIR"/output.txt_adm" |
# cp output_adm.txt $CDIR"/output_adm.txt" |
568 |
# fi |
# fi |
569 |
if test -s STDERR.0000 ; then cp STDERR.0000 $CDIR"/STDERR.0000" ; fi |
if test -s STDERR.0000 ; then cp STDERR.0000 $CDIR"/STDERR.0000" ; fi |
570 |
return 0 |
return 0 |
665 |
|
|
666 |
scandirs() |
scandirs() |
667 |
{ |
{ |
668 |
if [ $# -eq 0 ]; then |
if [ $# -eq 1 ]; then |
669 |
for arg in * ; do |
for arg in * ; do |
670 |
test -d $arg/input && echo $arg |
test -d $arg/$1 && echo $arg |
671 |
done |
done |
672 |
else |
else |
673 |
echo $* |
echo $* |
674 |
fi |
fi |
675 |
} |
} |
676 |
|
|
714 |
fi |
fi |
715 |
JOBS= |
JOBS= |
716 |
MPI=f |
MPI=f |
717 |
|
MULTI_THREAD=f |
718 |
OUTDIR= |
OUTDIR= |
719 |
DELDIR= |
DELDIR= |
720 |
|
|
802 |
|
|
803 |
-mpi) MPI=t ;; |
-mpi) MPI=t ;; |
804 |
|
|
805 |
|
-mth) MULTI_THREAD=t ;; |
806 |
|
|
807 |
-adm | -ad) ADM=t ;; |
-adm | -ad) ADM=t ;; |
808 |
|
|
809 |
-ieee) IEEE=true ;; |
-ieee) IEEE=true ;; |
836 |
fi |
fi |
837 |
|
|
838 |
if test "x$TESTDIRS" = x ; then |
if test "x$TESTDIRS" = x ; then |
839 |
TESTDIRS=`scandirs` |
if test "x$ADM" = xt ; then |
840 |
|
TESTDIRS=`scandirs results_ad` |
841 |
|
else |
842 |
|
TESTDIRS=`scandirs results` |
843 |
|
fi |
844 |
|
else |
845 |
|
#- expand group of experiments: |
846 |
|
LIST=" " |
847 |
|
for xx in $TESTDIRS |
848 |
|
do |
849 |
|
case $xx in |
850 |
|
'basic') LIST=${LIST}" aim.5l_cs front_relax global_ocean.90x40x15" |
851 |
|
LIST=${LIST}" hs94.128x64x5 tutorial_barotropic_gyre" |
852 |
|
LIST=${LIST}" tutorial_global_oce_biogeo tutorial_plume_on_slope" |
853 |
|
;; |
854 |
|
'tutorials') |
855 |
|
LIST=${LIST}" "`ls | grep 'tutorial_'` ;; |
856 |
|
*) LIST=${LIST}" "$xx ;; |
857 |
|
esac |
858 |
|
done |
859 |
|
#echo 'LIST='${LIST}'<' |
860 |
|
#- remove duplicate and non-directory: |
861 |
|
TESTDIRS=" " |
862 |
|
for xx in $LIST |
863 |
|
do |
864 |
|
if test -d $xx ; then |
865 |
|
yy=`echo $TESTDIRS | grep -c $xx` |
866 |
|
if test $yy = 0 ; then TESTDIRS=${TESTDIRS}" "$xx ; fi |
867 |
|
else |
868 |
|
echo " -- skip \"$xx\" : not a directory !" |
869 |
|
fi |
870 |
|
done |
871 |
fi |
fi |
872 |
|
#echo 'TESTDIRS='${TESTDIRS}'<' |
873 |
|
|
874 |
if test "x$OPTFILE" = xNONE -a "x$MITGCM_OF" != x ; then |
if test "x$OPTFILE" = xNONE -a "x$MITGCM_OF" != x ; then |
875 |
OPTFILE=$MITGCM_OF |
OPTFILE=$MITGCM_OF |
877 |
|
|
878 |
if test "x$ADM" = xt ; then |
if test "x$ADM" = xt ; then |
879 |
EXECUTABLE="mitgcmuv_ad" |
EXECUTABLE="mitgcmuv_ad" |
880 |
OUTPUTFILE="output.txt_adm" |
OUTPUTFILE="output_adm.txt" |
881 |
else |
else |
882 |
EXECUTABLE="mitgcmuv" |
EXECUTABLE="mitgcmuv" |
883 |
OUTPUTFILE="output.txt" |
OUTPUTFILE="output.txt" |
884 |
fi |
fi |
885 |
|
|
886 |
if test "x$ADM" = xt -a "x$COMMAND" = x ; then |
if test "x$ADM" = xt -a "x$COMMAND" = x ; then |
887 |
COMMAND="./$EXECUTABLE > $OUTPUTFILE 2>&1" |
COMMAND="./$EXECUTABLE > $OUTPUTFILE" |
888 |
fi |
fi |
889 |
|
|
890 |
if test "x$COMMAND" = x ; then |
if test "x$COMMAND" = x ; then |
996 |
# Cleanup only! |
# Cleanup only! |
997 |
if test "x$CLEANUP" = xt ; then |
if test "x$CLEANUP" = xt ; then |
998 |
if test -r $dir/build/Makefile ; then |
if test -r $dir/build/Makefile ; then |
999 |
|
echo ' ------ clean dir:' $dir/build |
1000 |
( cd $dir/build ; make CLEAN ) |
( cd $dir/build ; make CLEAN ) |
1001 |
fi |
fi |
1002 |
if test -r $dir/input/Makefile ; then |
if test -d $dir/run/CVS ; then |
1003 |
( cd $dir/input ; make CLEAN ) |
echo ' ------ clean dir:' $dir/run |
1004 |
|
run_clean $dir/run |
1005 |
fi |
fi |
1006 |
( |
( |
1007 |
cd $dir |
cd $dir |
1016 |
if test "x$ADM" = x ; then |
if test "x$ADM" = x ; then |
1017 |
fout=$dir"/results/output.txt" |
fout=$dir"/results/output.txt" |
1018 |
else |
else |
1019 |
fout=$dir"/results_ad/output.txt_adm" |
fout=$dir"/results_ad/output_adm.txt" |
1020 |
fi |
fi |
1021 |
if test ! -r $fout ; then |
if test ! -r $fout ; then |
1022 |
echo "can't read \"$fout\" -- skipping $dir" |
echo "can't read \"$fout\" -- skipping $dir" |
1028 |
|
|
1029 |
# Check for additional types of monitor output |
# Check for additional types of monitor output |
1030 |
|
|
1031 |
builddir="input" |
builddir="build" |
1032 |
rundir="input" |
if test ! -d $dir/$builddir ; then mkdir $dir/$builddir ; fi |
1033 |
use_seperate_build=0 |
rundir="run" |
1034 |
if test -d $dir/build -a -r $dir/build ; then |
#rundir=$builddir |
1035 |
builddir="build" |
if test ! -d $dir/$rundir ; then |
1036 |
rundir="build" |
rundir=$builddir |
|
use_seperate_build=1 |
|
|
linkdata $use_seperate_build $dir/$rundir |
|
1037 |
fi |
fi |
1038 |
|
|
|
# Check whether there are "extra runs" for this testdir |
|
|
extra_runs= |
|
|
if test "x$ADM" = x -a "x$use_seperate_build" = x1 ; then |
|
|
ex_run_dirs=`( cd $dir ; echo input.* )` |
|
|
echo "ex_run_dirs='$ex_run_dirs'" |
|
|
for exd in $ex_run_dirs ; do |
|
|
name=`echo $exd | sed -e 's/input.//g'` |
|
|
outf="$dir/results/output.txt.$name" |
|
|
if test -f $outf -a -r $outf ; then |
|
|
extra_runs="$extra_runs $name" |
|
|
fi |
|
|
done |
|
|
fi |
|
|
|
|
1039 |
if test "x$ADM" = x ; then |
if test "x$ADM" = x ; then |
1040 |
code_dir=code |
code_dir=code |
1041 |
CODE_DIR=$dir/code |
CODE_DIR=$dir/code |
1042 |
|
input_dirs='input' |
1043 |
else |
else |
1044 |
code_dir=code_ad |
code_dir=code_ad |
1045 |
CODE_DIR=$dir/code_ad |
CODE_DIR=$dir/code_ad |
1046 |
|
input_dirs='input_ad input' |
1047 |
fi |
fi |
1048 |
BUILD_DIR=$dir/$builddir |
BUILD_DIR=$dir/$builddir |
1049 |
|
|
1051 |
echo "can't find \"$CODE_DIR/SIZE.h_mpi\" -- skipping $dir" |
echo "can't find \"$CODE_DIR/SIZE.h_mpi\" -- skipping $dir" |
1052 |
continue |
continue |
1053 |
fi |
fi |
1054 |
|
if test ! -r $dir"/input/eedata.mth" -a "x$MULTI_THREAD" = "xt" ; then |
1055 |
|
echo "can't find \"$dir/input/eedata.mth\" -- skipping $dir" |
1056 |
|
continue |
1057 |
|
fi |
1058 |
|
|
1059 |
|
# Check whether there are "extra runs" for this testdir |
1060 |
|
extra_runs= |
1061 |
|
if test "x$ADM" = x ; then |
1062 |
|
ex_run_dirs=`( cd $dir ; echo input.* )` |
1063 |
|
#echo "ex_run_dirs='$ex_run_dirs'" |
1064 |
|
for exd in $ex_run_dirs ; do |
1065 |
|
name=`echo $exd | sed -e 's/input.//g'` |
1066 |
|
outf="$dir/results/output.txt.$name" |
1067 |
|
if test -f $outf -a -r $outf ; then |
1068 |
|
if test "x$MULTI_THREAD" = "xt" ; then |
1069 |
|
if test -r $dir"/"$exd"/eedata.mth" ; then |
1070 |
|
extra_runs="$extra_runs $name" |
1071 |
|
#else echo $dir"/"$exd"/eedata.mth: not found" |
1072 |
|
fi |
1073 |
|
else |
1074 |
|
extra_runs="$extra_runs $name" |
1075 |
|
fi |
1076 |
|
fi |
1077 |
|
done |
1078 |
|
fi |
1079 |
|
|
1080 |
echo "-------------------------------------------------------------------------------" |
echo "-------------------------------------------------------------------------------" |
1081 |
echo |
echo |
1082 |
echo "Experiment: $dir" |
if test "x$extra_runs" = "x" ; then |
1083 |
|
echo "Experiment: $dir" |
1084 |
|
else |
1085 |
|
echo "Experiment: $dir ; extra_runs=$extra_runs" |
1086 |
|
fi |
1087 |
echo |
echo |
1088 |
unset genmake makedepend make run |
unset genmake makedepend make run |
1089 |
results='-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --' |
results='-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --' |
1094 |
CDIR=`pwd`"/$rel_CDIR" |
CDIR=`pwd`"/$rel_CDIR" |
1095 |
|
|
1096 |
if test "x$CLEANUP" = xt ; then |
if test "x$CLEANUP" = xt ; then |
1097 |
makeclean $dir/$builddir |
echo '====>>> this is to check that we never go through this part <<< ===' |
1098 |
|
makeclean $dir/$builddir \ |
1099 |
|
&& run_clean $dir/$rundir |
1100 |
else |
else |
1101 |
genmakemodel $dir/$builddir && genmake=Y \ |
genmakemodel $dir/$builddir && genmake=Y \ |
1102 |
&& makeclean $dir/$builddir \ |
&& makeclean $dir/$builddir \ |
1103 |
|
&& run_clean $dir/$rundir \ |
1104 |
&& symlink_mpifiles $dir $code_dir $builddir \ |
&& symlink_mpifiles $dir $code_dir $builddir \ |
1105 |
&& makedependmodel $dir/$builddir && makedepend=Y \ |
&& makedependmodel $dir/$builddir && makedepend=Y \ |
1106 |
&& makemodel $dir/$builddir && make=Y \ |
&& makemodel $dir/$builddir && make=Y \ |
1107 |
&& linkdata $use_seperate_build $dir/$rundir \ |
&& linkdata $dir/$rundir $input_dirs \ |
1108 |
&& runmodel $dir/$rundir && run=Y \ |
&& runmodel $dir/$rundir && run=Y \ |
1109 |
&& results=`testoutput $dir $rundir` |
&& results=`testoutput $dir $rundir` |
1110 |
fi |
fi |
1128 |
mkdir $rel_CDIR |
mkdir $rel_CDIR |
1129 |
CDIR=`pwd`"/$rel_CDIR" |
CDIR=`pwd`"/$rel_CDIR" |
1130 |
test ! -e "$dir/tr_run.$ex" && mkdir "$dir/tr_run.$ex" |
test ! -e "$dir/tr_run.$ex" && mkdir "$dir/tr_run.$ex" |
1131 |
for ldir in input.$ex input ; do |
run_clean $dir/tr_run.$ex |
1132 |
( |
linkdata $dir/tr_run.$ex input.$ex input |
|
cd "$dir/$ldir" > /dev/null 2>&1 |
|
|
ls -1 2>/dev/null \ |
|
|
| sed -e 's|^CVS$||g' | sed -e 's|^output.txt$||g' |
|
|
) > tr_exrun_links |
|
|
( |
|
|
cd "$dir/tr_run.$ex" |
|
|
cat ../../tr_exrun_links | while read i ; do |
|
|
if test ! "x$i" = x ; then |
|
|
test ! -r $i && ln -s "../"$ldir"/"$i $i |
|
|
fi |
|
|
done |
|
|
) |
|
|
test -e tr_exrun_links && rm -f tr_exrun_links |
|
|
done |
|
|
ldir=build |
|
|
( |
|
|
cd $dir/tr_run.$ex |
|
|
test ! -e mitgcmuv && ln -s "../"$ldir"/"mitgcmuv . |
|
|
) |
|
1133 |
runmodel $dir/tr_run.$ex && run=Y \ |
runmodel $dir/tr_run.$ex && run=Y \ |
1134 |
&& results=`testoutput $dir tr_run.$ex "."$ex` |
&& results=`testoutput $dir tr_run.$ex "."$ex` |
1135 |
fres=`printf '%s %s %s %s' ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N}` |
fres=`printf '%s %s %s %s' ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N}` |
1142 |
echo "UNAMEA='$UNAMEA'" >> $CDIR"/summary.txt" |
echo "UNAMEA='$UNAMEA'" >> $CDIR"/summary.txt" |
1143 |
echo "DATE='$DATE'" >> $CDIR"/summary.txt" |
echo "DATE='$DATE'" >> $CDIR"/summary.txt" |
1144 |
echo "tdir='$dir.$ex'" >> $CDIR"/summary.txt" |
echo "tdir='$dir.$ex'" >> $CDIR"/summary.txt" |
1145 |
|
if test "x$POSTCLEAN" = xt ; then |
1146 |
|
run_clean $dir/tr_run.$ex |
1147 |
|
fi |
1148 |
done |
done |
1149 |
else |
else |
1150 |
fres=`printf '%s %s %s %s' ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N}` |
fres=`printf '%s %s %s %s' ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N}` |
1156 |
echo "UNAMEA='$UNAMEA'" >> $CDIR"/summary.txt" |
echo "UNAMEA='$UNAMEA'" >> $CDIR"/summary.txt" |
1157 |
echo "DATE='$DATE'" >> $CDIR"/summary.txt" |
echo "DATE='$DATE'" >> $CDIR"/summary.txt" |
1158 |
echo "tdir='$dir'" >> $CDIR"/summary.txt" |
echo "tdir='$dir'" >> $CDIR"/summary.txt" |
1159 |
|
grep -A3 'Seconds in section "ALL' $dir/$rundir/$OUTPUTFILE \ |
1160 |
|
>> $CDIR"/summary.txt" |
1161 |
fi |
fi |
1162 |
|
|
1163 |
postclean $dir/$builddir |
#postclean $dir/$builddir |
1164 |
|
if test "x$POSTCLEAN" = xt ; then |
1165 |
|
makeclean $dir/$builddir \ |
1166 |
|
&& run_clean $dir/$rundir |
1167 |
|
fi |
1168 |
|
|
1169 |
echo "-------------------------------------------------------------------------------" |
echo "-------------------------------------------------------------------------------" |
1170 |
|
|