--- MITgcm/verification/testreport 2003/10/28 19:16:49 1.12 +++ MITgcm/verification/testreport 2003/11/11 16:05:11 1.16 @@ -1,6 +1,6 @@ #!/bin/bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.12 2003/10/28 19:16:49 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.16 2003/11/11 16:05:11 edhill Exp $ # $Name: $ # @@ -81,7 +81,7 @@ echo testoutput_for_prop: grep "$2" $1/$4/output.txt 1>&2 fi if [ -r $1/$4/output.txt ]; then - grep "$2" $1/$4/output.txt | sed 's/.*=//' | nl > tmp1.txt + grep "$2" $1/$4/output.txt | sed 's/.*=//' | cat -n > tmp1.txt lncnt=`wc -l tmp1.txt | awk '{print $1}' ` if [ $lncnt -lt 3 ]; then if [ $verbose -gt 0 ]; then @@ -96,7 +96,7 @@ if [ $debug -gt 0 ]; then echo testoutput_for_prop: grep "$2" $1/results/output.txt 1>&2 fi - grep "$2" $1/results/output.txt | sed 's/.*=//' | nl > tmp2.txt + grep "$2" $1/results/output.txt | sed 's/.*=//' | cat -n > tmp2.txt lncnt=`wc -l tmp2.txt | awk '{print $1}' ` if [ $lncnt -lt 3 ]; then if [ $verbose -gt 0 ]; then @@ -579,7 +579,9 @@ exit 1 fi SUMMARY="$DRESULTS/summary.txt" +echo -n "Start time: " >> $SUMMARY date > $SUMMARY +start_date=`date` cat << EOF >> $SUMMARY T S U V G D M c m s m s m s m s @@ -746,9 +748,18 @@ done -rm tmp_cmpnum.f a.out +echo -n "Start time: " >> $SUMMARY +echo $start_date >> $SUMMARY +echo -n "End time: " >> $SUMMARY +date >> $SUMMARY + +rm tmp_cmpnum.f a.out dfile if test "x$CLEANUP" != xt ; then cat $SUMMARY + if test -e tr.out ; then + mv tr.out tr.out.old + fi + cat $SUMMARY > tr.out fi