/[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.19 by jmc, Sun Nov 2 14:13:56 2014 UTC revision 1.22 by jmc, Mon Aug 3 15:54:05 2015 UTC
# Line 11  else Line 11  else
11  #   tst_list='iadm imp2 iur4'  #   tst_list='iadm imp2 iur4'
12      tst_list='iad4 imp2 iur4'      tst_list='iad4 imp2 iur4'
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 gmp2 gmpi gfo g77'  #   tst_list='gadm gads gmp2 gmpi gfo g77'
17      tst_list='gadm gads gmp2 gfo'      tst_list='gadm gads gmp2 gfo'
# Line 47  do Line 47  do
47    fi    fi
48  done  done
49  if [ $gfort -eq 0 ] ; then  if [ $gfort -eq 0 ] ; then
   #echo 'source ~jmc/bin/intel_v12.sh'  
   #source ~jmc/bin/intel_v12.sh  
50     echo 'source ~jmc/bin/intel_v14.sh'     echo 'source ~jmc/bin/intel_v14.sh'
51     source ~jmc/bin/intel_v14.sh     source ~jmc/bin/intel_v14.sh
52      #echo 'source ~jmc/bin/intel_v15.sh'
53      #source ~jmc/bin/intel_v15.sh
54  fi  fi
55  if [ $gfort -eq 2 ] ; then  if [ $gfort -eq 2 ] ; then
56     echo 'source ~jmc/bin/openmpi.sh'     echo 'source ~jmc/bin/openmpi.sh'
# Line 66  do Line 66  do
66    rm -f tr_clean_$tt.log    rm -f tr_clean_$tt.log
67    echo $tt | grep '^.ad' > /dev/null 2>&1 ; fwd=$?    echo $tt | grep '^.ad' > /dev/null 2>&1 ; fwd=$?
68    echo " testing tt= $tt , fwd= $fwd"    echo " testing tt= $tt , fwd= $fwd"
69  if [ $fwd -eq 0 ] ; then   if test -d MITgcm_$tt/verification ; then
70    set -x   #- cleaning previous testreport run and updating the code:
71    ( cd MITgcm_$tt/verification ; ./testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 )    if [ $fwd -eq 0 ] ; then
72    set +x     set -x
73  else    #- cleanup previous test:
74    set -x     ( cd MITgcm_$tt/verification ; ./testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 )
75       set +x
76      else
77       set -x
78    #- cleanup previous restart:    #- cleanup previous restart:
79    ( 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 )
80    #- cleanup previous test:    #- cleanup previous test:
81    ( cd MITgcm_$tt/verification ; ./testreport -clean >> ../../tr_clean_$tt.log 2>&1 )     ( cd MITgcm_$tt/verification ; ./testreport -clean >> ../../tr_clean_$tt.log 2>&1 )
82    set +x     set +x
83  fi    fi
84    if [ $gfort -eq 0 ] ; then    if [ $gfort -eq 0 ] ; then
85      echo ' remove all Makefile_syntax and do "cvs update -P -d"' >> tr_clean_$tt.log      echo ' remove all Makefile_syntax and do "cvs update -P -d"' >> tr_clean_$tt.log
86      ( cd MITgcm_$tt/verification ; rm -f */build/Makefile_syntax )      ( cd MITgcm_$tt/verification ; rm -f */build/Makefile_syntax )
# Line 88  fi Line 91  fi
91    
92    echo "=========================================================================="    echo "=========================================================================="
93    set -x    set -x
94      #- update the code:
95    ( cd MITgcm_$tt ; $cmdCVS update -P -d  >> ../tr_clean_$tt.log 2>&1 )    ( cd MITgcm_$tt ; $cmdCVS update -P -d  >> ../tr_clean_$tt.log 2>&1 )
96    set +x    set +x
97     else
98     #- download new code:
99      echo " run '$cmdCVS co -P -d  MITgcm_$tt MITgcm'"  >> tr_clean_$tt.log
100      echo "=========================================================================="
101      set -x
102        $cmdCVS co -P -d  MITgcm_$tt MITgcm >> tr_clean_$tt.log 2>&1
103      set +x
104     fi
105    echo ""    echo ""
   
106    echo "=========================================================================="    echo "=========================================================================="
107    
108     if test -d MITgcm_$tt/verification ; then
109    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
110    cd MITgcm_$tt/verification    cd MITgcm_$tt/verification
111    
# Line 107  case $tt in Line 119  case $tt in
119  'iadm' )  'iadm' )
120    
121    ./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \    ./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \
122     -devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1     -devel -nc -ncad -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1
123    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
124    
125    ./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \    ./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \
# Line 119  case $tt in Line 131  case $tt in
131  'iad4' )  'iad4' )
132    
133    ./testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \    ./testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \
134     -devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1     -devel -nc -ncad -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1
135    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
136    
137    ./testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \    ./testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \
# Line 166  case $tt in Line 178  case $tt in
178  'gadm')  'gadm')
179    
180    ./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_gfortran \    ./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_gfortran \
181     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -ncad -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
182    
183    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
184  ;;  ;;
# Line 174  case $tt in Line 186  case $tt in
186  'gads')  'gads')
187    
188    ./testreport -adm -of ../tools/build_options/linux_amd64_gfortran \    ./testreport -adm -of ../tools/build_options/linux_amd64_gfortran \
189     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -ncad -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
190    
191    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
192  ;;  ;;
# Line 182  case $tt in Line 194  case $tt in
194  'gad4')  'gad4')
195    
196    ./testreport -adm -ur4 -of ../tools/build_options/linux_amd64_gfortran \    ./testreport -adm -ur4 -of ../tools/build_options/linux_amd64_gfortran \
197     -devel -nc -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -ncad -nc -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
198    
199    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
200  ;;  ;;
# Line 269  esac Line 281  esac
281    set +x    set +x
282    cd ../..    cd ../..
283    
284     else
285      echo "error: missing dir MITgcm_$tt/verification"
286     fi
287    
288  done  done

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.22