/[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.8 by jmc, Mon Aug 3 14:11:49 2020 UTC revision 1.12 by jmc, Thu Feb 16 21:29:01 2023 UTC
# Line 13  else Line 13  else
13      dd1=`date +%d -d "1 day"`      dd1=`date +%d -d "1 day"`
14  #   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
15    elif test $1 = gfort ; then    elif test $1 = gfort ; then
16      tst_list='gadm gads gad4 gmp4 gmp2 gfo gfo4 g77'      tst_list='gadm gads gad4 gmp4 gmp2 gfo gfo4'
17    #   tst_list="$tst_list g77 g7a"
18    elif test $1 = gfor8 ; then    elif test $1 = gfor8 ; then
19  #   tst_list='gadm gads gmp2 gmpi gfo g77'  #   tst_list='gadm gads gmp2 gmpi gfo g77'
20      tst_list='gadm gads gmp2 gfo'      tst_list='gadm gads gmp2 gfo'
# Line 75  do Line 76  do
76  # set -x  # set -x
77    rm -f tr_clean_$tt.log    rm -f tr_clean_$tt.log
78    echo $tt | grep '^.ad' > /dev/null 2>&1 ; fwd=$?    echo $tt | grep '^.ad' > /dev/null 2>&1 ; fwd=$?
79      if test $tt = g7a ; then fwd=0 ; fi
80    echo " testing tt= $tt , fwd= $fwd"    echo " testing tt= $tt , fwd= $fwd"
81   if test -e $gcmDIR/.git/config -a -d $gcmDIR/verification ; then   if test -e $gcmDIR/.git/config -a -d $gcmDIR/verification ; then
82   #- cleaning previous testreport run and updating the code:   #- cleaning previous testreport run and updating the code:
# Line 190  case $tt in Line 192  case $tt in
192    #- test restart:    #- test restart:
193    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
194    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1
195      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
196  ;;  ;;
197    
198  'iur4')  'iur4')
# Line 206  case $tt in Line 209  case $tt in
209    #- test restart:    #- test restart:
210    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
211    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1
212      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
213  ;;  ;;
214    
215  'gadm')  'gadm')
# Line 232  case $tt in Line 236  case $tt in
236    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
237  ;;  ;;
238    
239    'g7a')
240    
241      ./testreport -adm -of ../tools/build_options/linux_amd64_g77 \
242       -skd 'halfpipe_streamice' \
243       -nc $sendCmd >> ../../tr_run_$tt.log 2>&1
244    
245      sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
246    ;;
247    
248  'gmp2')  'gmp2')
249    
250    export OMP_NUM_THREADS=2    export OMP_NUM_THREADS=2
# Line 245  case $tt in Line 258  case $tt in
258    #- test restart:    #- test restart:
259    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
260    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1
261      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
262  ;;  ;;
263    
264  'gmpi')  'gmpi')
# Line 257  case $tt in Line 271  case $tt in
271    #- test restart:    #- test restart:
272    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
273    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1
274      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
275  ;;  ;;
276    
277  'gmp4')  'gmp4')
# Line 269  case $tt in Line 284  case $tt in
284    #- test restart:    #- test restart:
285    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
286    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 -mpi $sendCmd >> ../../tr_run_$tt.log 2>&1
287      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
288  ;;  ;;
289    
290  'gfo')  'gfo')
# Line 281  case $tt in Line 297  case $tt in
297    #- test restart:    #- test restart:
298    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
299    ../tools/do_tst_2+2 $sendCmd >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 $sendCmd >> ../../tr_run_$tt.log 2>&1
300      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
301  ;;  ;;
302    
303  'gfo4')  'gfo4')
# Line 293  case $tt in Line 310  case $tt in
310    #- test restart:    #- test restart:
311    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
312    ../tools/do_tst_2+2 $sendCmd >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 $sendCmd >> ../../tr_run_$tt.log 2>&1
313      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
314  ;;  ;;
315    
316  'g77')  'g77')
317    
318    ./testreport -of ../tools/build_options/linux_amd64_g77 \    ./testreport -of ../tools/build_options/linux_amd64_g77 \
319     -skd 'fizhi-cs-32x32x40 fizhi-cs-aqualev20' \     -skd 'fizhi-cs-32x32x40 fizhi-cs-aqualev20 halfpipe_streamice internal_wave tutorial_advection_in_gyre' \
320     -nc $sendCmd >> ../../tr_run_$tt.log 2>&1     -nc $sendCmd >> ../../tr_run_$tt.log 2>&1
321    
322    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
# Line 306  case $tt in Line 324  case $tt in
324    #- test restart:    #- test restart:
325    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
326    ../tools/do_tst_2+2 $sendCmd >> ../../tr_run_$tt.log 2>&1    ../tools/do_tst_2+2 $sendCmd >> ../../tr_run_$tt.log 2>&1
327      sed -n '/^=====  Summary /,$ p' ../../tr_run_$tt.log
328  ;;  ;;
329    
330  *) echo "unrecognized test suffix '$tt' <== skipped" ;;  *) echo "unrecognized test suffix '$tt' <== skipped" ;;

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.22