/[MITgcm]/MITgcm/verification/testreport
ViewVC logotype

Diff of /MITgcm/verification/testreport

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.12 by edhill, Tue Oct 28 19:16:49 2003 UTC revision 1.16 by edhill, Tue Nov 11 16:05:11 2003 UTC
# Line 81  testoutput_for_prop() Line 81  testoutput_for_prop()
81          echo testoutput_for_prop: grep "$2" $1/$4/output.txt 1>&2          echo testoutput_for_prop: grep "$2" $1/$4/output.txt 1>&2
82      fi      fi
83      if [ -r $1/$4/output.txt ]; then      if [ -r $1/$4/output.txt ]; then
84          grep "$2" $1/$4/output.txt | sed 's/.*=//' | nl > tmp1.txt          grep "$2" $1/$4/output.txt | sed 's/.*=//' | cat -n > tmp1.txt
85          lncnt=`wc -l tmp1.txt | awk '{print $1}' `          lncnt=`wc -l tmp1.txt | awk '{print $1}' `
86          if [ $lncnt -lt 3 ]; then          if [ $lncnt -lt 3 ]; then
87              if [ $verbose -gt 0 ]; then              if [ $verbose -gt 0 ]; then
# Line 96  testoutput_for_prop() Line 96  testoutput_for_prop()
96      if [ $debug -gt 0 ]; then      if [ $debug -gt 0 ]; then
97          echo testoutput_for_prop: grep "$2" $1/results/output.txt 1>&2          echo testoutput_for_prop: grep "$2" $1/results/output.txt 1>&2
98      fi      fi
99      grep "$2" $1/results/output.txt | sed 's/.*=//' | nl > tmp2.txt      grep "$2" $1/results/output.txt | sed 's/.*=//' | cat -n > tmp2.txt
100      lncnt=`wc -l tmp2.txt | awk '{print $1}' `      lncnt=`wc -l tmp2.txt | awk '{print $1}' `
101      if [ $lncnt -lt 3 ]; then      if [ $lncnt -lt 3 ]; then
102          if [ $verbose -gt 0 ]; then          if [ $verbose -gt 0 ]; then
# Line 579  if test "x$RETVAL" != x0 ; then Line 579  if test "x$RETVAL" != x0 ; then
579      exit 1      exit 1
580  fi  fi
581  SUMMARY="$DRESULTS/summary.txt"  SUMMARY="$DRESULTS/summary.txt"
582    echo -n "Start time:  " >> $SUMMARY
583  date > $SUMMARY  date > $SUMMARY
584    start_date=`date`
585  cat << EOF >> $SUMMARY  cat << EOF >> $SUMMARY
586                  T           S           U           V                  T           S           U           V
587  G D M    c        m  s        m  s        m  s        m  s  G D M    c        m  s        m  s        m  s        m  s
# Line 746  for dir in $TESTDIRS ; do Line 748  for dir in $TESTDIRS ; do
748            
749  done  done
750    
751  rm tmp_cmpnum.f a.out  echo -n "Start time:  " >> $SUMMARY
752    echo $start_date >> $SUMMARY
753    echo -n "End time:    " >> $SUMMARY
754    date >> $SUMMARY
755    
756    rm tmp_cmpnum.f a.out dfile
757    
758  if test "x$CLEANUP" != xt ; then  if test "x$CLEANUP" != xt ; then
759      cat $SUMMARY      cat $SUMMARY
760        if test -e tr.out ; then
761            mv tr.out tr.out.old
762        fi
763        cat $SUMMARY > tr.out
764  fi  fi
765    

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.22