--- MITgcm/verification/testreport 2009/05/12 18:44:24 1.125 +++ MITgcm/verification/testreport 2009/12/02 19:16:15 1.129 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.125 2009/05/12 18:44:24 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.129 2009/12/02 19:16:15 jmc Exp $ # $Name: $ # @@ -273,9 +273,9 @@ 'aSIav') testoutput_var $1 "seaice_area_mean" "SIce Area mean" $2 $3; yy=$? ;; 'aSIsd') testoutput_var $1 "seaice_area_sd" "SIce Area StDv" $2 $3; yy=$? ;; 'hSImn') testoutput_var $1 "seaice_heff_min" "SIce Heff min" $2 $3; yy=$? ;; - 'hSImx') testoutput_var $1 "seaice_heff_max" "SIce Hell max" $2 $3; yy=$? ;; - 'hSIav') testoutput_var $1 "seaice_heff_mean" "SIce Hell mean" $2 $3; yy=$? ;; - 'hSIsd') testoutput_var $1 "seaice_heff_sd" "SIce Hell StDv" $2 $3; yy=$? ;; + 'hSImx') testoutput_var $1 "seaice_heff_max" "SIce Heff max" $2 $3; yy=$? ;; + 'hSIav') testoutput_var $1 "seaice_heff_mean" "SIce Heff mean" $2 $3; yy=$? ;; + 'hSIsd') testoutput_var $1 "seaice_heff_sd" "SIce Heff StDv" $2 $3; yy=$? ;; 'AthSiG') testoutput_var $1 "thSI_Ice_Area_G" "thSIc Area Global" $2 $3; yy=$? ;; 'AthSiS') testoutput_var $1 "thSI_Ice_Area_S" "thSIc Area South" $2 $3; yy=$? ;; 'AthSiN') testoutput_var $1 "thSI_Ice_Area_N" "thSIc Area North" $2 $3; yy=$? ;; @@ -385,8 +385,10 @@ cp make.log $CDIR"/make.log" return 1 fi + echo successful 1>&2 + else + echo '' fi - echo successful 1>&2 exit 0 ) fi @@ -1168,18 +1170,19 @@ # Cleanup only! if test "x$CLEANUP" = xt ; then - if test -r $BUILD_DIR/Makefile ; then - echo ' ------ clean dir:' $dir/$builddir - ( cd $BUILD_DIR ; make CLEAN ) - fi + echo -n ' --- dir:' $BUILD_DIR ': ' + makeclean $BUILD_DIR + rm -f $BUILD_DIR/$EXECUTABLE if test -d $dir/$rundir/CVS ; then - echo ' ------ clean dir:' $dir/$rundir + echo -n ' --- dir:' $dir/$rundir ': ' run_clean $dir/$rundir fi - ( - cd $dir - rm -rf tr_run.* - ) + trdir=`( cd $dir ; find . -type d -name "tr_run.*" -print | sed 's/^.\///')` + ttd=`echo $trdir | wc -w` + if test $ttd != 0 ; then + echo ' --- rm dir:' $trdir + ( cd $dir ; rm -rf $trdir ) + fi continue fi @@ -1356,9 +1359,9 @@ echo "An email containing results was sent to the following addresses:" echo " \"$ADDRESSES\"" echo + test -f $DRESULTS".tar" && rm -f $DRESULTS".tar" + test -f $DRESULTS".tar.gz" && rm -f $DRESULTS".tar.gz" fi - test -f $DRESULTS".tar" && rm -f $DRESULTS".tar" - test -f $DRESULTS".tar.gz" && rm -f $DRESULTS".tar.gz" fi fi