--- MITgcm/verification/testscript 2001/08/16 15:37:40 1.15 +++ MITgcm/verification/testscript 2001/08/21 15:21:10 1.17 @@ -202,18 +202,25 @@ ( cd $1 if [ -x $2 ]; then - if [ ! -r output.txt -o $quick -eq 0 ]; then - echo runmodel: running... 1>&2 + if [ $quick -eq 0 ]; then rm -f output.txt - ( ./$2 > output.txt 2>&1 ) && return 0 - return 1 - else - echo runmodel: output.txt is newer than executable 1>&2 - return 0 fi - else - echo runmodel: executable \"$1/$2\" is missing 1>&2 - return 1 + echo -n "runmodel: " 1>&2 + make output.txt && return 0 +# if [ ! -r output.txt -o $quick -eq 0 ]; then +# echo runmodel: running... 1>&2 +# ( ./$2 > output.txt 2>&1 ) && return 0 +# rm -f output.txt +# ( make output.txt ) && return 0 +# return 1 +# else +# echo runmodel: output.txt is newer than executable 1>&2 +# ( make output.txt ) && return 0 +# return 0 +# fi +# else +# echo runmodel: executable \"$1/$2\" is missing 1>&2 +# return 1 fi ) } @@ -393,7 +400,8 @@ && makedependmodel $dir/input && makedepend=Y \ && makemodel $dir/input && make=Y \ && runmodel $dir/input mitgcmuv && run=Y \ - && results=`testoutput $dir` + && results=`testoutput $dir` \ + && makeclean $dir/input echo formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N} $results echo