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

Diff of /MITgcm_contrib/test_scripts/other/testing_loc

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

revision 1.13 by jmc, Sun Aug 26 18:10:43 2012 UTC revision 1.16 by jmc, Sat Feb 2 16:49:20 2013 UTC
# Line 13  else Line 13  else
13    elif test $1 = gfort ; then    elif test $1 = gfort ; then
14  #   tst_list='gadm gads gmp2 gmpi gfo g77'  #   tst_list='gadm gads gmp2 gmpi gfo g77'
15      tst_list='gadm gads gmp2 gfo g77'      tst_list='gadm gads gmp2 gfo g77'
16      elif test $1 = gfor4 ; then
17        tst_list='gad4 gmp4 gfo4'
18    else    else
19      tst_list=$*      tst_list=$*
20    fi    fi
# Line 46  for tt in $tst_list Line 48  for tt in $tst_list
48  do  do
49    
50    echo "=========================================================================="    echo "=========================================================================="
51    set -x  # set -x
52    rm -f tr_clean_$tt.log    rm -f tr_clean_$tt.log
53  if test $tt = 'iadm' -o $tt = 'iad4' -o $tt = 'gadm' -o  $tt = 'gads' ; then    echo $tt | grep '^.ad' > /dev/null 2>&1 ; fwd=$?
54      echo " testing tt= $tt , fwd= $fwd"
55    if [ $fwd -eq 0 ] ; then
56      set -x
57    ( cd MITgcm_$tt/verification ; testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 )    ( cd MITgcm_$tt/verification ; testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 )
58      set +x
59  else  else
60      set -x
61    #- cleanup previous restart:    #- cleanup previous restart:
62    ( cd MITgcm_$tt/verification ; ../tools/do_tst_2+2 -clean > ../../tr_clean_$tt.log 2>&1 )    ( cd MITgcm_$tt/verification ; ../tools/do_tst_2+2 -clean > ../../tr_clean_$tt.log 2>&1 )
63    #- cleanup previous test:    #- cleanup previous test:
64    ( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 )    ( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 )
 fi  
65    set +x    set +x
66    fi
67      if [ $gfort -eq 0 ] ; then
68        echo ' remove all Makefile_syntax and do "cvs update -P -d"' >> tr_clean_$tt.log
69        ( cd MITgcm_$tt/verification ; rm -f */build/Makefile_syntax )
70      else
71        echo ' run "cvs update -P -d"'  >> tr_clean_$tt.log
72      fi
73    echo ""    echo ""
74    
75    echo "=========================================================================="    echo "=========================================================================="
# Line 164  case $tt in Line 177  case $tt in
177    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
178  ;;  ;;
179    
180    'gad4')
181      if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi
182    
183      testreport -adm -ur4 -match 5 -of ../tools/build_options/linux_amd64_gfortran \
184       -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
185    
186      sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
187    ;;
188    
189  'gmp2')  'gmp2')
190    if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi    if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi
191    
# Line 197  case $tt in Line 219  case $tt in
219     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
220  ;;  ;;
221    
222    'gmp4')
223      if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi
224    
225      testreport -MPI 3 -ur4 -match 5 -of ../tools/build_options/linux_amd64_gfortran \
226       -devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
227       -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
228    
229      sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
230    
231      #- test restart:
232      echo '' >> ../../tr_run_$tt.log 2>&1
233      ../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \
234       -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
235    ;;
236    
237  'gfo')  'gfo')
238    if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi    if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi
239    
# Line 204  case $tt in Line 241  case $tt in
241     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
242    
243    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
244    
245      #- test restart:
246      echo '' >> ../../tr_run_$tt.log 2>&1
247      ../tools/do_tst_2+2 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
248    ;;
249    
250    'gfo4')
251      if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi
252    
253      testreport -ur4 -match 5 -of ../tools/build_options/linux_amd64_gfortran \
254       -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
255    
256      sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
257    
258    #- test restart:    #- test restart:
259    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.22