/[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.37 by edhill, Fri Mar 12 18:51:05 2004 UTC revision 1.41 by edhill, Tue Jul 6 20:14:32 2004 UTC
# Line 13  usage() Line 13  usage()
13      echo "  (-help|-h)               print usage"      echo "  (-help|-h)               print usage"
14      echo "  (-mpi)                   use MPI input files"      echo "  (-mpi)                   use MPI input files"
15      echo "  (-ieee|-noieee)          if possible, use IEEE compiler flags"      echo "  (-ieee|-noieee)          if possible, use IEEE compiler flags"
16      echo "                             (DEF=\"noieee\")"      echo "                             (DEF=\"-ieee\")"
17      echo "  (-optfile=|-of=)STRING   list of optfiles to use"      echo "  (-optfile=|-of=)STRING   list of optfiles to use"
18      echo "  (-a|-addr) STRING        list of email recipients"      echo "  (-a|-addr) STRING        list of email recipients"
19      echo "                             (DEF=\"edhill@mitgcm.org\")"      echo "                             (DEF=\"edhill@mitgcm.org\")"
# Line 32  usage() Line 32  usage()
32      echo "  (-nogenmake|-ng)         skip the genmake stage"      echo "  (-nogenmake|-ng)         skip the genmake stage"
33      echo "  (-noclean|-nc)           skip the \"make clean\" stage"      echo "  (-noclean|-nc)           skip the \"make clean\" stage"
34      echo "  (-nodepend|-nd)          skip the \"make depend\" stage"      echo "  (-nodepend|-nd)          skip the \"make depend\" stage"
35        echo "  (-deldir|-dd)            on success, delete the output directory"
36      echo      echo
37      echo "and where STRING follows a whitespace-delimited format"      echo "and where STRING follows a whitespace-delimited format"
38      echo "such as:"      echo "such as:"
# Line 413  runmodel() Line 414  runmodel()
414          cd $1          cd $1
415          printf 'runmodel ... ' 1>&2          printf 'runmodel ... ' 1>&2
416          # make output.txt          # make output.txt
417          ( $COMMAND ) >> run.log 2>&1          echo
418            # echo "COMMAND='$COMMAND'"
419            # echo "pwd='"`pwd`"'"
420            ( eval $COMMAND ) >> run.log 2>&1
421          RETVAL=$?          RETVAL=$?
422          if test "x$RETVAL" = x0 ; then          if test "x$RETVAL" = x0 ; then
423              echo successful 1>&2              echo successful 1>&2
# Line 542  clean=0 Line 546  clean=0
546  expts=''  expts=''
547  # ieee=1  # ieee=1
548    
549  IEEE=  IEEE=true
550  if test "x$MITGCM_IEEE" != x ; then  if test "x$MITGCM_IEEE" != x ; then
551      IEEE=$MITGCM_IEEE      IEEE=$MITGCM_IEEE
552  fi  fi
# Line 564  MPACK="$MPACKDIR/mpack" Line 568  MPACK="$MPACKDIR/mpack"
568  COMMAND=  COMMAND=
569  MAKE=make  MAKE=make
570  MPI=f  MPI=f
571    DELDIR=
572    
573  ADM=  ADM=
574    
# Line 639  for ac_option ; do Line 644  for ac_option ; do
644          -debug) debug=1 ;;          -debug) debug=1 ;;
645          -quiet) verbose=0 ;;          -quiet) verbose=0 ;;
646    
647            -deldir | -dd) DELDIR=t ;;
648    
649          -*)          -*)
650              echo "Error: unrecognized option: "$ac_option              echo "Error: unrecognized option: "$ac_option
651              usage              usage
# Line 880  for dir in $TESTDIRS ; do Line 887  for dir in $TESTDIRS ; do
887                  ln -s ../$builddir/mitgcmuv mitgcmuv                  ln -s ../$builddir/mitgcmuv mitgcmuv
888              )              )
889              runmodel $dir/tr_run && run=Y \              runmodel $dir/tr_run && run=Y \
890                  && results=`testoutput $dir $rundir "."$ex`                  && results=`testoutput $dir tr_run "."$ex`
891              fres=`printf '%s %s %s %s' ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N}`              fres=`printf '%s %s %s %s' ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N}`
892              fres=`formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N} $results`              fres=`formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N} $results`
893              fres="$fres.$ex"              fres="$fres.$ex"
# Line 952  if test "x$CLEANUP" != xt ; then Line 959  if test "x$CLEANUP" != xt ; then
959      cat $SUMMARY > tr_out.txt      cat $SUMMARY > tr_out.txt
960  fi  fi
961    
962    if test "x$DELDIR" = xt ; then
963        rm -rf $DRESULTS
964    fi
965    

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.41

  ViewVC Help
Powered by ViewVC 1.1.22