327 |
'HthSiN') testoutput_var $1 "thSI_IceH_ave_N" "thSIc H North-av" $2 $refoutp ; yy=$? ;; |
'HthSiN') testoutput_var $1 "thSI_IceH_ave_N" "thSIc H North-av" $2 $refoutp ; yy=$? ;; |
328 |
'HthMxS') testoutput_var $1 "thSI_IceH_max_S" "thSIc H South-max" $2 $refoutp ; yy=$? ;; |
'HthMxS') testoutput_var $1 "thSI_IceH_max_S" "thSIc H South-max" $2 $refoutp ; yy=$? ;; |
329 |
'HthMxN') testoutput_var $1 "thSI_IceH_max_N" "thSIc H North-max" $2 $refoutp ; yy=$? ;; |
'HthMxN') testoutput_var $1 "thSI_IceH_max_N" "thSIc H North-max" $2 $refoutp ; yy=$? ;; |
330 |
|
'StrmIc') testoutput_var $1 "STREAMICE_FP_ERR" "StreamIce Solver" $2 $refoutp ; yy=$? ;; |
331 |
*) yy=99; echo "WARNING: asking for var=$xx : not recognized !" 1>&2 ;; |
*) yy=99; echo "WARNING: asking for var=$xx : not recognized !" 1>&2 ;; |
332 |
esac |
esac |
333 |
if test $xx = $sVar |
if test $xx = $sVar |
470 |
rm -f $RUNLOG *.txt STD* w2_tile_topology.????.log *diagnostics.log datetime |
rm -f $RUNLOG *.txt STD* w2_tile_topology.????.log *diagnostics.log datetime |
471 |
rm -rf mnc_test_* |
rm -rf mnc_test_* |
472 |
rm -f *_MIT_CE_000.opt0000 costfunction*0000 |
rm -f *_MIT_CE_000.opt0000 costfunction*0000 |
473 |
|
rm -f oad_cp.000.[0-9][0-9][0-9][0-9][0-9] |
474 |
echo successful |
echo successful |
475 |
exit 0 |
exit 0 |
476 |
) |
) |
539 |
fi |
fi |
540 |
fi |
fi |
541 |
if test $KIND = 1 -a -f taf_ftl.log ; then |
if test $KIND = 1 -a -f taf_ftl.log ; then |
542 |
head -1 taf_ftl.log >> $CDIR"/summary.txt" |
head -1 taf_ftl.log >> $CDIR"/summary.txt" |
543 |
fi |
fi |
544 |
if test $KIND = 2 -a -f taf_ad.log ; then |
if test $KIND = 2 -a -f taf_ad.log ; then |
545 |
head -1 taf_ad.log >> $CDIR"/summary.txt" |
head -1 taf_ad.log >> $CDIR"/summary.txt" |
546 |
nerr=`grep -c 'TAF *.* ERROR ' taf_ad.log` |
nerr=`grep -c 'TAF *.* ERROR ' taf_ad.log` |
547 |
nwar=`grep -c 'TAF RECOMPUTATION *.* WARNING ' taf_ad.log` |
nwar=`grep -c 'TAF RECOMPUTATION *.* WARNING ' taf_ad.log` |
548 |
echo " TAF reports $nerr Errors and $nwar Recomputation Warnings" \ |
if test -f taf_output ; then |
549 |
|
n2er=`grep -c 'TAF *.* ERROR ' taf_output` |
550 |
|
nerr=`expr $nerr + $n2er` |
551 |
|
fi |
552 |
|
echo " TAF reports $nerr Errors and $nwar Recomputation Warnings" \ |
553 |
>> $CDIR"/summary.txt" |
>> $CDIR"/summary.txt" |
554 |
fi |
fi |
555 |
if test $mk_fail != 0 ; then return $mk_fail ; fi |
if test $mk_fail != 0 ; then return $mk_fail ; fi |
920 |
fi |
fi |
921 |
fi |
fi |
922 |
printf ' %s' $nm |
printf ' %s' $nm |
923 |
|
if test $KIND = 2 ; then |
924 |
|
#-- apppend taf repport summary: |
925 |
|
tafrep=`grep -c '^ TAF reports ' $CDIR/summary.txt` |
926 |
|
if test $tafrep = 1 ; then |
927 |
|
grep '^ TAF reports ' $CDIR/summary.txt | awk '{printf " (e=%i, w=%i)",$3,$6}' |
928 |
|
fi |
929 |
|
fi |
930 |
printf '\n' |
printf '\n' |
931 |
|
|
932 |
} |
} |
1528 |
# Check whether there are "extra runs" for this testdir |
# Check whether there are "extra runs" for this testdir |
1529 |
extra_runs= |
extra_runs= |
1530 |
if test "x$NORUN" = xf ; then |
if test "x$NORUN" = xf ; then |
1531 |
ex_run_dirs=`( cd $dir ; echo $inputdir.* )` |
ex_run_dirs=`( cd $dir ; ls -d $inputdir.* 2> /dev/null )` |
1532 |
fi |
fi |
1533 |
#echo "ex_run_dirs='$ex_run_dirs'" |
#echo "ex_run_dirs='$ex_run_dirs'" |
1534 |
for exd in $ex_run_dirs ; do |
for exd in $ex_run_dirs ; do |
1535 |
name=`echo $exd | sed -e "s/$inputdir\.//"` |
name=`echo $exd | sed -e "s/$inputdir\.//"` |
1536 |
refExOut=`echo $ref_outp | sed "s/\./.${name}./"` |
refExOut=`echo $ref_outp | sed "s/\./.${name}./"` |
1537 |
outf="$dir/results/$refExOut" |
outf="$dir/results/$refExOut" |
|
#if test -f $outf -a -r $outf ; then |
|
1538 |
if test -r $outf -o -r ${outf}.gz ; then |
if test -r $outf -o -r ${outf}.gz ; then |
1539 |
if test "x$MULTI_THREAD" = "xt" ; then |
if test "x$MULTI_THREAD" = "xt" ; then |
1540 |
if test -r $dir"/"$exd"/eedata.mth" ; then |
if test -r $dir"/"$exd"/eedata.mth" ; then |
1618 |
linkdata $dir/$pfxdir.$ex $inputdir.$ex $inputdir |
linkdata $dir/$pfxdir.$ex $inputdir.$ex $inputdir |
1619 |
runmodel $dir/$pfxdir.$ex && run=Y \ |
runmodel $dir/$pfxdir.$ex && run=Y \ |
1620 |
&& results=`testoutput_run $dir $pfxdir.$ex $refExOut` |
&& results=`testoutput_run $dir $pfxdir.$ex $refExOut` |
1621 |
fres=`formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N} $results` |
fres=`formatresults $dir.$ex ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N} $results` |
|
fres="$fres.$ex" |
|
1622 |
echo 1>&2 |
echo 1>&2 |
1623 |
echo "$fres" | sed 's/ 99/ --/g' | sed 's/ > />/' | sed 's/ < /</' >> $SUMMARY |
echo "$fres" | sed 's/ 99/ --/g' | sed 's/ > />/' | sed 's/ < /</' >> $SUMMARY |
1624 |
echo "fresults='$fres'" | sed 's/ 99/ --/g' >> $locDIR"/summary.txt" |
echo "fresults='$fres'" | sed 's/ 99/ --/g' >> $locDIR"/summary.txt" |