/[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.4 by edhill, Wed Sep 3 20:02:47 2003 UTC revision 1.5 by edhill, Sat Sep 6 02:45:07 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"      echo "  (-b|-bash)STRING         the \"bash\" executable"
17        echo "  (-m|-make)STRING         the \"make\" executable"
18      echo      echo
19      exit 1      exit 1
20  }  }
# Line 30  build_mpack() Line 31  build_mpack()
31              exit 1              exit 1
32          fi          fi
33          echo -n "building mpack...  "          echo -n "building mpack...  "
34          ( cd $MPACKDIR && ./configure && make ) > build_mpack.out 2>&1          ( cd $MPACKDIR && ./configure && $MAKE ) > build_mpack.out 2>&1
35          RETVAL=$?          RETVAL=$?
36          if test "x$RETVAL" != x0 ; then          if test "x$RETVAL" != x0 ; then
37              echo              echo
# Line 166  genmakemodel() Line 167  genmakemodel()
167          cd $1;          cd $1;
168          printf 'genmake ... ' 1>&2          printf 'genmake ... ' 1>&2
169          # ../../../tools/genmake -ieee -mods=../code > make.log 2>&1          # ../../../tools/genmake -ieee -mods=../code > make.log 2>&1
170          $GENMAKE2  -ds --mods=../code "--optfile="$OPTFILE > make.log 2>&1          $GENMAKE2 -make $MAKE -ds --mods=../code "--optfile="$OPTFILE > make.log 2>&1
171          RETVAL=$?          RETVAL=$?
172          for i in gm_state gm_optfile gm_local Makefile ; do          for i in gm_state gm_optfile gm_local Makefile ; do
173              if test -r $i ; then              if test -r $i ; then
# Line 192  makeclean() Line 193  makeclean()
193          rm -f output.txt          rm -f output.txt
194          printf 'make CLEAN ... ' 2>&1          printf 'make CLEAN ... ' 2>&1
195          if test -r Makefile ; then          if test -r Makefile ; then
196              make CLEAN >> make.log 2>&1              $MAKE CLEAN >> make.log 2>&1
197              RETVAL=$?              RETVAL=$?
198              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
199                  tail make.log                  tail make.log
# Line 212  makedependmodel() Line 213  makedependmodel()
213      (      (
214          cd $1;          cd $1;
215          printf 'make depend ... ' 1>&2          printf 'make depend ... ' 1>&2
216          make depend >> make.log 2>&1          $MAKE depend >> make.log 2>&1
217          RETVAL=$?          RETVAL=$?
218          if test "x$RETVAL" != x0 ; then          if test "x$RETVAL" != x0 ; then
219              tail make.log              tail make.log
# Line 232  makemodel() Line 233  makemodel()
233          cd $1;          cd $1;
234          if test -r Makefile ; then          if test -r Makefile ; then
235              printf 'make ... ' 1>&2              printf 'make ... ' 1>&2
236              make >> make.log 2>&1              $MAKE >> make.log 2>&1
237              RETVAL=$?              RETVAL=$?
238              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
239                  tail make.log                  tail make.log
# Line 268  runmodel() Line 269  runmodel()
269                  rm -f output.txt                  rm -f output.txt
270              fi              fi
271              printf 'runmodel: ' 1>&2              printf 'runmodel: ' 1>&2
272              make output.txt              $MAKE output.txt
273              RETVAL=$?              RETVAL=$?
274              if test "x$RETVAL" = x0 ; then              if test "x$RETVAL" = x0 ; then
275                  cp output.txt $CDIR"/output.txt"                  cp output.txt $CDIR"/output.txt"
# Line 395  ADDRESSES=edhill@mitgcm.org Line 396  ADDRESSES=edhill@mitgcm.org
396  TESTDIRS=  TESTDIRS=
397  MPACKDIR="../tools/mpack-1.6"  MPACKDIR="../tools/mpack-1.6"
398  MPACK="$MPACKDIR/mpack"  MPACK="$MPACKDIR/mpack"
399    MAKE=make
400    
401  echo -n "parsing options...  "  echo -n "parsing options...  "
402    
# Line 435  for ac_option ; do Line 437  for ac_option ; do
437          -bash=* | --bash=*)          -bash=* | --bash=*)
438              BASH=$ac_optarg ;;              BASH=$ac_optarg ;;
439    
440            -make | --make | -m | --m)
441                ac_prev=MAKE ;;
442            -make=* | --make=*)
443                MAKE=$ac_optarg ;;
444    
445          -quick) quick=1 ;;          -quick) quick=1 ;;
446          -verbose) verbose=2 ;;          -verbose) verbose=2 ;;
447          -debug) debug=1 ;;          -debug) debug=1 ;;

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

  ViewVC Help
Powered by ViewVC 1.1.22