/[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.45 by edhill, Sat Jul 17 02:08:45 2004 UTC revision 1.48 by jmc, Wed Nov 17 21:38:35 2004 UTC
# Line 237  genmakemodel() Line 237  genmakemodel()
237              $command > make.log 2>&1              $command > make.log 2>&1
238              RETVAL=$?              RETVAL=$?
239              #  Reduce the size of the testing emails!              #  Reduce the size of the testing emails!
240              #  cp Makefile $CDIR              head -100 Makefile > $CDIR/Makefile_head
241              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
242                  tail make.log                  tail make.log
243                  echo "genmakemodel: genmake failed" 1>&2                  echo "genmakemodel: genmake failed" 1>&2
# Line 422  runmodel() Line 422  runmodel()
422          printf 'runmodel ... ' 1>&2          printf 'runmodel ... ' 1>&2
423          # make output.txt          # make output.txt
424          echo          echo
425            rm -f run.log
426          # echo "COMMAND='$COMMAND'"          # echo "COMMAND='$COMMAND'"
427          # echo "pwd='"`pwd`"'"          # echo "pwd='"`pwd`"'"
428          ( eval $COMMAND ) >> run.log 2>&1          ( eval $COMMAND ) > run.log 2>&1
429          RETVAL=$?          RETVAL=$?
430          if test "x$RETVAL" = x0 ; then          if test "x$RETVAL" = x0 ; then
431                tail run.log
432              echo successful 1>&2              echo successful 1>&2
433              # === Reduce the size of the testing emails!              # === Reduce the size of the testing emails!
434              # if test "x$ADM" = x ; then              # if test "x$ADM" = x ; then
# Line 434  runmodel() Line 436  runmodel()
436              # else              # else
437              #   cp output.txt_adm $CDIR"/output.txt_adm"              #   cp output.txt_adm $CDIR"/output.txt_adm"
438              # fi              # fi
439                if test -s STDERR.0000 ; then cp STDERR.0000 $CDIR"/STDERR.0000" ; fi
440              return 0              return 0
441          else          else
442              tail run.log              tail run.log
443              echo failed 1>&2              echo failed 1>&2
444              cp run.log $CDIR"/run.log"              cp run.log $CDIR"/run.log"
445                if test -s STDERR.0000 ; then cp STDERR.0000 $CDIR"/STDERR.0000" ; fi
446              return 1              return 1
447          fi          fi
448      )      )

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.48

  ViewVC Help
Powered by ViewVC 1.1.22