/[MITgcm]/MITgcm_contrib/test_scripts/other/test_local
ViewVC logotype

Diff of /MITgcm_contrib/test_scripts/other/test_local

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

revision 1.3 by jmc, Fri May 27 19:45:48 2016 UTC revision 1.14 by jmc, Sun Jun 4 14:00:29 2023 UTC
# Line 3  Line 3 
3  # $Header$  # $Header$
4  # $Name$  # $Name$
5    
6    #-------------------------------------------------------------------------------
7    #-- process argument list:
8  if test $# = 0 ; then  if test $# = 0 ; then
9    echo 'need 1 argument'    echo 'need 1 argument'
10    exit    exit
# Line 13  else Line 15  else
15      dd1=`date +%d -d "1 day"`      dd1=`date +%d -d "1 day"`
16  #   if test $dd1 != '01' ; then echo 'not last day of month'; exit ; fi  #   if test $dd1 != '01' ; then echo 'not last day of month'; exit ; fi
17    elif test $1 = gfort ; then    elif test $1 = gfort ; then
18      tst_list='gadm gads gad4 gmp4 gmp2 gfo gfo4 g77'      tst_list='gadm gads gad4 gmp4 gmp2 gfo gfo4'
19    #   tst_list="$tst_list g77 g7a"
20      elif test $1 = tap ; then
21        tst_list='tapAD tapTL'
22    elif test $1 = gfor8 ; then    elif test $1 = gfor8 ; then
23  #   tst_list='gadm gads gmp2 gmpi gfo g77'  #   tst_list='gadm gads gmp2 gmpi gfo g77'
24      tst_list='gadm gads gmp2 gfo'      tst_list='gadm gads gmp2 gfo'
# Line 23  else Line 28  else
28      tst_list=$*      tst_list=$*
29    fi    fi
30  fi  fi
   echo "run: \""`basename $0` $*"\" on:" `date`  
   echo " tst_list='$tst_list'"  
31    
32  #- to get ~/bin in the patch (for staf) when run on cron:  #-------------------------------------------------------------------------------
33  if [ -d ~/bin ]; then  #-- general setting + MITgcm ref clone update:
34    echo 'add ~/bin to $PATH'  #
   export PATH=$PATH:~/bin  
 fi  
35  #- to get case insensitive "ls" (and order of tested experiments)  #- to get case insensitive "ls" (and order of tested experiments)
36  #export LC_ALL="en_US.UTF-8"  #export LC_ALL="en_US.UTF-8"
37  #- Turn off stack limit for FIZHI & AD-tests  #- Turn off stack limit for FIZHI & AD-tests
38  ulimit -s unlimited  ulimit -s unlimited
39  #- method to acces CVS:  #- method to acces CVS:
40  cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack -q'    cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack -q'
41    #- and which GitHub repository to use:
42      git_repo='MITgcm';  git_code='MITgcm'
43     #git_repo='altMITgcm'; #git_code='MITgcm66h'
44    #- other settings:
45    tmpFil="/tmp/"`basename $0`".$$"
46    logFile='check_update.log'
47    sendCmd='-a jm_c@mitgcm.org'
48    sendCmd='-send scp -a jm_c@mitgcm.org:testing/MITgcm-test'
49    
50    echo "-- run: \""`basename $0` $*"\" on:" `date` >> $logFile
51    gcmDIR="MITgcm"
52    if test -e $gcmDIR/.git/config ; then : else
53      echo " No current clone ==> get a fresh clone" >> $logFile
54      if test -d $gcmDIR ; then /bin/rm -rf $gcmDIR ; fi
55      git clone https://github.com/$git_repo/${git_code}.git $gcmDIR
56      ( cd $gcmDIR ; git rev-parse HEAD > ../git_Hash )
57    fi
58    
59    #-------------------------------------------------------------------------------
60    #-- check particular set of tests:
61    if test $1 = tap ; then
62    #- Only run this pair of test if MITgcm code got updated:
63      if test -f prevHash ; then
64       #ls -l prevHash  >> $logFile
65        diff -q git_Hash prevHash > /dev/null 2>&1
66        retv=$?
67        if test $retv = 0 ; then
68          echo " No update in repos since previous test ==> skip '$1' set of tests"  >> $logFile
69          exit 0
70        else
71          echo " Will run '$1' set of tests since repos has been updated" >> $logFile
72          echo -n ' prevHash: ' >> $logFile
73          cat prevHash >> $logFile
74          echo -n ' git_Hash: ' >> $logFile
75          cat git_Hash >> $logFile
76        fi
77      else
78        echo " No file 'prevHash' --> will run '$1' set of tests" >> $logFile
79      fi
80    elif test $1 = gfort ; then
81      #- to force to skip "tap" test while "gfort" is running:
82      if test -f prevHash ; then
83        cp -p prevHash git_Hash
84      else
85        cp -p git_Hash prevHash
86      fi
87    fi
88    
89    echo "run: \""`basename $0` $*"\" on:" `date`
90    echo " tst_list='$tst_list'"
91    
92  #-- for now, cannot mix ifort/gfortran tests:  #- to get ~/bin in the patch (for staf) when run on cron:
93    if [ -d ~/bin ]; then
94      echo 'add ~/bin to $PATH'
95      export PATH=$PATH:~/bin
96    #- and for Tapenade:
97      echo $tst_list | grep '\<tap' > /dev/null 2>&1 ; retv=$?
98      if test $retv = 0 ; then
99        source ~jmc/bin/set_tapenade.sh
100      fi
101    fi
102    
103    #- for now, cannot mix ifort/gfortran tests:
104  gfort=1  gfort=1
105  for tt in $tst_list  for tt in $tst_list
106  do  do
107    echo $tt | grep '^g' > /dev/null 2>&1 ; retv=$?    echo $tt | grep '^tap' > /dev/null 2>&1 ; retv=$?
108      if [ $retv -ne 0 ] ; then
109        echo $tt | grep '^g' > /dev/null 2>&1 ; retv=$?
110      fi
111    if   [ $retv -eq 0 -a $gfort -ge 1 ] ; then gfort=2    if   [ $retv -eq 0 -a $gfort -ge 1 ] ; then gfort=2
112    elif [ $retv -ne 0 -a $gfort -le 1 ] ; then gfort=0    elif [ $retv -ne 0 -a $gfort -le 1 ] ; then gfort=0
113    else echo 'cannot mix ifort/gfortran' ; exit    else echo 'cannot mix ifort/gfortran' ; exit
# Line 59  if [ $gfort -eq 2 ] ; then Line 124  if [ $gfort -eq 2 ] ; then
124     source ~jmc/bin/openmpi.sh     source ~jmc/bin/openmpi.sh
125  fi  fi
126    
127  #--------------------------------------------------------------------  #-------------------------------------------------------------------------------
128    #-- Update & Run individual test:
129  for tt in $tst_list  for tt in $tst_list
130  do  do
131    
132    #- Clean and Update testing clone: ---------------------------------------------
133      gcmDIR="MITgcm_$tt"
134    echo "=========================================================================="    echo "=========================================================================="
135  # set -x  # set -x
136    rm -f tr_clean_$tt.log    rm -f tr_clean_$tt.log
137    echo $tt | grep '^.ad' > /dev/null 2>&1 ; fwd=$?    echo $tt | grep '^.ad' > /dev/null 2>&1 ; fwd=$?
138      echo $tt | grep '^tap' > /dev/null 2>&1 ; tap=$?
139      if test $tt = g7a -o $tap = 0 ; then fwd=0 ; clOpt='-adm' ; fi
140    echo " testing tt= $tt , fwd= $fwd"    echo " testing tt= $tt , fwd= $fwd"
141   if test -d MITgcm_$tt/verification ; then   if test -e $gcmDIR/.git/config -a -d $gcmDIR/verification ; then
142   #- cleaning previous testreport run and updating the code:   #- cleaning previous testreport run and updating the code:
143    if [ $fwd -eq 0 ] ; then    if [ $fwd -eq 0 ] ; then
144       if test $tt = 'tapAD' ; then clOpt='-tap -adm' ; fi
145       if test $tt = 'tapTL' ; then clOpt='-tap -tlm' ; fi
146     set -x     set -x
147    #- cleanup previous test:    #- cleanup previous test:
148     ( cd MITgcm_$tt/verification ; ./testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 )     ( cd $gcmDIR/verification ; ./testreport $clOpt -clean > ../../tr_clean_$tt.log 2>&1 )
149     set +x     set +x
150    else    else
151     set -x     set -x
152    #- cleanup previous restart:    #- cleanup previous restart:
153     ( cd MITgcm_$tt/verification ; ../tools/do_tst_2+2 -clean > ../../tr_clean_$tt.log 2>&1 )     ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean > ../../tr_clean_$tt.log 2>&1 )
154    #- cleanup previous test:    #- cleanup previous test:
155     ( cd MITgcm_$tt/verification ; ./testreport -clean >> ../../tr_clean_$tt.log 2>&1 )     ( cd $gcmDIR/verification ; ./testreport -clean >> ../../tr_clean_$tt.log 2>&1 )
156     set +x     set +x
157    fi    fi
158    if [ $gfort -eq 0 ] ; then    if [ $gfort -eq 0 ] ; then
159      echo ' remove all Makefile_syntax and do "cvs update -P -d"' >> tr_clean_$tt.log      echo ' remove all Makefile_syntax' >> tr_clean_$tt.log
160      ( cd MITgcm_$tt/verification ; rm -f */build/Makefile_syntax )      ( cd $gcmDIR/verification ; rm -f */build/Makefile_syntax )
   else  
     echo " run '$cmdCVS update -P -d'"  >> tr_clean_$tt.log  
161    fi    fi
162    echo ""    echo "" >> tr_clean_$tt.log
163    
164    echo "=========================================================================="    echo "==========================================================================" \
165           >> tr_clean_$tt.log
166      echo " Update MITgcm code in dir: $gcmDIR using 'git pull':" | tee -a tr_clean_$tt.log
167    set -x    set -x
168    #- update the code:    #- update the code:
169    ( cd MITgcm_$tt ; $cmdCVS update -P -d  >> ../tr_clean_$tt.log 2>&1 )    ( cd $gcmDIR ; git pull )                             >> tr_clean_$tt.log 2>&1 ; retv=$?
170      set +x
171      if test $retv != 0 ; then
172        echo "'git pull' in $gcmDIR fail (return val=$retv) => skip" | tee -a tr_clean_$tt.log
173        continue
174      fi
175      echo "  and checkout master:"                         | tee -a tr_clean_$tt.log
176      set -x
177      ( cd $gcmDIR ; git checkout master -- . )             >> tr_clean_$tt.log 2>&1
178    set +x    set +x
179   else   else
180      echo "Missing '$gcmDIR/.git/config' or dir '$gcmDIR/verification'" >> tr_clean_$tt.log
181      if test -e $gcmDIR ; then
182        echo -n " removing working copy: $gcmDIR ..."       >> tr_clean_$tt.log
183        rm -rf $gcmDIR
184        echo "  done"                                       >> tr_clean_$tt.log
185      fi
186   #- download new code:   #- download new code:
187    echo " run '$cmdCVS co -P -d  MITgcm_$tt MITgcm'"  >> tr_clean_$tt.log    echo "==========================================================================" \
188    echo "=========================================================================="         >> tr_clean_$tt.log
189      echo "Make a clone of $git_code from repo: $git_repo into: $gcmDIR ..." | tee -a  tr_clean_$tt.log
190    set -x    set -x
191      $cmdCVS co -P -d  MITgcm_$tt MITgcm >> tr_clean_$tt.log 2>&1    git clone https://github.com/$git_repo/${git_code}.git $gcmDIR 2> $tmpFil
192      retv=$?
193    set +x    set +x
194      if test $retv = 0 ; then
195        echo '  done' >> tr_clean_$tt.log ; rm -f $tmpFil
196      else
197        echo "'git clone' into $gcmDIR failed (return: $retv) => skip" | tee -a tr_clean_$tt.log
198        cat $tmpFil >> tr_clean_$tt.log ; rm -f $tmpFil
199        continue
200      fi
201   fi   fi
202    echo ""    echo ""
203    echo "=========================================================================="    echo "=========================================================================="
204    
205   if test -d MITgcm_$tt/verification ; then   if test -d $gcmDIR/verification ; then
206    if test -e tr_run_$tt.log ; then mv -f tr_run_$tt.log tr_run_$tt.log_bak ; fi    if test -e tr_run_$tt.log ; then mv -f tr_run_$tt.log tr_run_$tt.log_bak ; fi
207    cd MITgcm_$tt/verification    cd $gcmDIR/verification
208    
209    date    date
210    # verbose mode:    # verbose mode:
# Line 117  do Line 212  do
212    pwd    pwd
213    test -e tr_out.txt && mv -f tr_out.txt tr_out.sav    test -e tr_out.txt && mv -f tr_out.txt tr_out.sav
214    
215    #- Run test in corresponding clone: --------------------------------------------
216  case $tt in  case $tt in
217  'iadm' )  'iadm' )
218    
# Line 125  case $tt in Line 221  case $tt in
221    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
222    
223    ./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \    ./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \
224     -devel -q -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -q $sendCmd >> ../../tr_run_$tt.log 2>&1
225    
226    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
227  ;;  ;;
# Line 137  case $tt in Line 233  case $tt in
233    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
234    
235    ./testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \    ./testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \
236     -devel -q -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -q -match 5 $sendCmd >> ../../tr_run_$tt.log 2>&1
237    
238    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
239  ;;  ;;
# Line 152  case $tt in Line 248  case $tt in
248    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
249    
250    ./testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \    ./testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \
251     -devel -q -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -q $sendCmd >> ../../tr_run_$tt.log 2>&1
252    
253    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
254    
255    #- test restart:    #- test restart:
256    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
257    ../tools/do_tst_2+2 -mpi -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1
258      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
259  ;;  ;;
260    
261  'iur4')  'iur4')
# Line 168  case $tt in Line 265  case $tt in
265    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
266    
267    ./testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \    ./testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \
268     -devel -q -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -q -match 5 $sendCmd >> ../../tr_run_$tt.log 2>&1
269    
270    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
271    
272    #- test restart:    #- test restart:
273    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
274    ../tools/do_tst_2+2 -mpi -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1
275      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
276  ;;  ;;
277    
278  'gadm')  'gadm')
279    
280    ./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_gfortran \    ./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_gfortran \
281     -devel -ncad -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -ncad -nc $sendCmd >> ../../tr_run_$tt.log 2>&1
282    
283    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
284  ;;  ;;
# Line 188  case $tt in Line 286  case $tt in
286  'gads')  'gads')
287    
288    ./testreport -adm -of ../tools/build_options/linux_amd64_gfortran \    ./testreport -adm -of ../tools/build_options/linux_amd64_gfortran \
289     -devel -ncad -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -ncad -nc $sendCmd >> ../../tr_run_$tt.log 2>&1
290    
291    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
292  ;;  ;;
# Line 196  case $tt in Line 294  case $tt in
294  'gad4')  'gad4')
295    
296    ./testreport -adm -ur4 -of ../tools/build_options/linux_amd64_gfortran \    ./testreport -adm -ur4 -of ../tools/build_options/linux_amd64_gfortran \
297     -devel -ncad -nc -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -ncad -nc -match 5 $sendCmd >> ../../tr_run_$tt.log 2>&1
298    
299      sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
300    ;;
301    
302    'tapAD')
303    
304      ./testreport -tap -adm -of ../tools/build_options/linux_amd64_gfortran \
305       $sendCmd >> ../../tr_run_$tt.log 2>&1
306    
307      sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
308    ;;
309    
310    'tapTL')
311    
312      ./testreport -tap -tlm -of ../tools/build_options/linux_amd64_gfortran \
313       $sendCmd >> ../../tr_run_$tt.log 2>&1
314    
315      sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
316    ;;
317    
318    'g7a')
319    
320      ./testreport -adm -of ../tools/build_options/linux_amd64_g77 \
321       -skd 'halfpipe_streamice' \
322       -nc $sendCmd >> ../../tr_run_$tt.log 2>&1
323    
324    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
325  ;;  ;;
# Line 207  case $tt in Line 330  case $tt in
330    export GOMP_STACKSIZE=400m    export GOMP_STACKSIZE=400m
331    
332    ./testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_gfortran \    ./testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_gfortran \
333     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -nc $sendCmd >> ../../tr_run_$tt.log 2>&1
334    
335    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
336    
337    #- test restart:    #- test restart:
338    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
339    ../tools/do_tst_2+2 -mpi -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1
340      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
341  ;;  ;;
342    
343  'gmpi')  'gmpi')
344    
345    ./testreport -MPI 3 -of ../tools/build_options/linux_amd64_gfortran \    ./testreport -MPI 3 -of ../tools/build_options/linux_amd64_gfortran \
346     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -nc $sendCmd >> ../../tr_run_$tt.log 2>&1
347    
348    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
349    
350    #- test restart:    #- test restart:
351    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
352    ../tools/do_tst_2+2 -mpi -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1
353      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
354  ;;  ;;
355    
356  'gmp4')  'gmp4')
357    
358    ./testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_gfortran \    ./testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_gfortran \
359     -devel -nc -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -nc -match 5 $sendCmd >> ../../tr_run_$tt.log 2>&1
360    
361    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
362    
363    #- test restart:    #- test restart:
364    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
365    ../tools/do_tst_2+2 -mpi -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1
366      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
367  ;;  ;;
368    
369  'gfo')  'gfo')
370    
371    ./testreport -of ../tools/build_options/linux_amd64_gfortran \    ./testreport -of ../tools/build_options/linux_amd64_gfortran \
372     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -nc $sendCmd >> ../../tr_run_$tt.log 2>&1
373    
374    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
375    
376    #- test restart:    #- test restart:
377    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
378    ../tools/do_tst_2+2 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 $sendCmd >> ../../tr_run_$tt.log 2>&1
379      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
380  ;;  ;;
381    
382  'gfo4')  'gfo4')
383    
384    ./testreport -ur4 -of ../tools/build_options/linux_amd64_gfortran \    ./testreport -ur4 -of ../tools/build_options/linux_amd64_gfortran \
385     -devel -nc -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -nc -match 5 $sendCmd >> ../../tr_run_$tt.log 2>&1
386    
387    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
388    
389    #- test restart:    #- test restart:
390    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
391    ../tools/do_tst_2+2 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 $sendCmd >> ../../tr_run_$tt.log 2>&1
392      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
393  ;;  ;;
394    
395  'g77')  'g77')
396    
397    ./testreport -of ../tools/build_options/linux_amd64_g77 \    ./testreport -of ../tools/build_options/linux_amd64_g77 \
398     -skd 'fizhi-cs-32x32x40 fizhi-cs-aqualev20' \     -skd 'fizhi-cs-32x32x40 fizhi-cs-aqualev20 halfpipe_streamice internal_wave tutorial_advection_in_gyre' \
399     -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -nc $sendCmd >> ../../tr_run_$tt.log 2>&1
400    
401    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
402    
403    #- test restart:    #- test restart:
404    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
405    ../tools/do_tst_2+2 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 $sendCmd >> ../../tr_run_$tt.log 2>&1
406      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
407  ;;  ;;
408    
409  *) echo "unrecognized test suffix '$tt' <== skipped" ;;  *) echo "unrecognized test suffix '$tt' <== skipped" ;;
# Line 284  esac Line 413  esac
413    cd ../..    cd ../..
414    
415   else   else
416    echo "error: missing dir MITgcm_$tt/verification"    echo "error: missing dir $gcmDIR/verification"
417   fi   fi
418    
419  done  done
420    
421    if test $1 = gfort ; then
422      day=`date +%d`
423      echo " day in the month='${day}'"
424      if test $day = 01 -a -f git_Hash ; then
425        ls -l git_Hash
426        echo -n ' git_Hash: '
427        cat git_Hash
428        echo "Remove file 'git_Hash' to force tomorrow 'tap' testing"
429        rm -f git_Hash
430      fi
431    fi

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.22