/[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.2 by edhill, Mon Sep 1 16:50:27 2003 UTC revision 1.4 by edhill, Wed Sep 3 20:02:47 2003 UTC
# Line 13  usage() Line 13  usage()
13      echo "  (-optfile=|-of=)STRING   list of genmake2 \"optfiles\""      echo "  (-optfile=|-of=)STRING   list of genmake2 \"optfiles\""
14      echo "  (-a|-addr)STRING         list of email recipients"      echo "  (-a|-addr)STRING         list of email recipients"
15      echo "  (-t|-tdir)STRING         list of \"test\" dirs"      echo "  (-t|-tdir)STRING         list of \"test\" dirs"
16        echo "  (-b|-bash)STRING         location of \"bash\" executable"
17      echo      echo
18      exit 1      exit 1
19  }  }
# Line 160  testoutput() Line 161  testoutput()
161  genmakemodel()  genmakemodel()
162  {  {
163      # genmakemodel directory      # genmakemodel directory
164      GENMAKE2="../../../tools/genmake2"      GENMAKE2="$BASH ../../../tools/genmake2"
165      (      (
166          cd $1;          cd $1;
167          printf 'genmake ... ' 1>&2          printf 'genmake ... ' 1>&2
# Line 315  EOFA Line 316  EOFA
316          return 0          return 0
317      else      else
318          echo          echo
319          echo "createcodelet: failed to compile codelet" | tee          echo "createcodelet: failed to compile codelet"
320          exit 1          exit 1
321      fi      fi
322  }  }
# Line 388  clean=0 Line 389  clean=0
389  ieee=1  ieee=1
390  expts=''  expts=''
391    
392    BASH=
393  OPTFILES=  OPTFILES=
394  ADDRESSES=edhill@mitgcm.org  ADDRESSES=edhill@mitgcm.org
395  TESTDIRS=  TESTDIRS=
# Line 428  for ac_option ; do Line 430  for ac_option ; do
430          -tdir=* | --tdir=*)          -tdir=* | --tdir=*)
431              TESTDIRS=$ac_optarg ;;              TESTDIRS=$ac_optarg ;;
432    
433            -bash | --bash | -b | --b)
434                ac_prev=BASH ;;
435            -bash=* | --bash=*)
436                BASH=$ac_optarg ;;
437    
438          -quick) quick=1 ;;          -quick) quick=1 ;;
439          -verbose) verbose=2 ;;          -verbose) verbose=2 ;;
440          -debug) debug=1 ;;          -debug) debug=1 ;;
# Line 505  for OPTFILE in $OPTFILES ; do Line 512  for OPTFILE in $OPTFILES ; do
512            
513      #  ...and each test directory...      #  ...and each test directory...
514      for dir in $TESTDIRS ; do      for dir in $TESTDIRS ; do
515    
516            #  Verify that the testdir exists and contains previous
517            #  results in the correct location--or skip this directory!
518            if test ! -r $dir"/results/output.txt" ; then
519                echo | tee -a $SUMMARY
520                echo "can't read \"$dir/results/output.txt\" -- skipping $dir" \
521                    | tee -a $SUMMARY
522                continue
523            fi
524                    
525          #  Create an output dir for each OPTFILE/tdir combination          #  Create an output dir for each OPTFILE/tdir combination
526          CDIR=$DRESULTS"/"$DRESULTS"_"$NDIR          CDIR=$DRESULTS"/"$DRESULTS"_"$NDIR
# Line 530  for OPTFILE in $OPTFILES ; do Line 546  for OPTFILE in $OPTFILES ; do
546              rundir=input              rundir=input
547          fi          fi
548    
         #  Verify that the testdir exists and contains previous  
         #  results in the correct location--or skip this directory!  
         if test ! -r $dir"/results/output.txt" ; then  
             echo | tee $SUMMARY  
             echo "can't read \"$dir/results/output.txt\" -- skipping $dir" \  
                 | tee $SUMMARY  
             continue  
         fi  
   
549          genmakemodel $dir/$builddir && genmake=Y \          genmakemodel $dir/$builddir && genmake=Y \
550              && makeclean $dir/$builddir \              && makeclean $dir/$builddir \
551              && makedependmodel $dir/$builddir && makedepend=Y \              && makedependmodel $dir/$builddir && makedepend=Y \

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.22