/[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.16 by jmc, Sun Oct 1 16:00:51 2023 UTC revision 1.17 by jmc, Mon Oct 2 13:02:27 2023 UTC
# Line 46  tmpFil="/tmp/"`basename $0`".$$" Line 46  tmpFil="/tmp/"`basename $0`".$$"
46  logFile='check_update.log'  logFile='check_update.log'
47  sendCmd='-a jm_c@mitgcm.org'  sendCmd='-a jm_c@mitgcm.org'
48  sendCmd='-send scp -a jm_c@mitgcm.org:testing/MITgcm-test'  sendCmd='-send scp -a jm_c@mitgcm.org:testing/MITgcm-test'
49    #- expect higher precision if test is run on reference platform+compiler:
50    MC=13
51    
52  echo "-- run: \""`basename $0` $*"\" on:" `date` >> $logFile  echo "-- run: \""`basename $0` $*"\" on:" `date` >> $logFile
53  gcmDIR="MITgcm"  gcmDIR="MITgcm"
# Line 135  do Line 137  do
137    echo "=========================================================================="    echo "=========================================================================="
138  # set -x  # set -x
139    rm -f tr_clean_$tt.log    rm -f tr_clean_$tt.log
140    echo $tt | grep '^.ad' > /dev/null 2>&1 ; fwd=$?    echo $tt | grep '^.ad' > /dev/null 2>&1 ; taf=$?
141    echo $tt | grep '^tap' > /dev/null 2>&1 ; tap=$?    echo $tt | grep '^tap' > /dev/null 2>&1 ; tap=$?
142    if test $tt = g7a ; then fwd=0 ; fi    if test $tt = g7a ; then taf=0 ; fi
143    echo " testing tt= $tt , fwd= $fwd , tap= $tap"    echo " testing tt= $tt , taf= $taf , tap= $tap"
144   if test -e $gcmDIR/.git/config -a -d $gcmDIR/verification ; then   if test -e $gcmDIR/.git/config -a -d $gcmDIR/verification ; then
145   #- cleaning previous testreport run and updating the code:   #- cleaning previous testreport run and updating the code:
146    if [ $fwd -eq 0 -o $tap -eq 0 ] ; then    if [ $taf -eq 0 -o $tap -eq 0 ] ; then
147     if test $tt = 'tapTL' ; then clOpt='-tlm' ; else clOpt='-adm' ; fi     if test $tt = 'tapTL' ; then clOpt='-tlm' ; else clOpt='-adm' ; fi
148     if [ $tap -eq 0 ] ; then clOpt="-tap $clOpt" ; fi     if [ $tap -eq 0 ] ; then clOpt="-tap $clOpt" ; fi
149     set -x     set -x
# Line 303  case $tt in Line 305  case $tt in
305  'tapAD')  'tapAD')
306    
307    ./testreport -tap -adm -of ../tools/build_options/linux_amd64_gfortran \    ./testreport -tap -adm -of ../tools/build_options/linux_amd64_gfortran \
308     $sendCmd >> ../../tr_run_$tt.log 2>&1     -match $MC $sendCmd >> ../../tr_run_$tt.log 2>&1
309    
310    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
311  ;;  ;;
# Line 311  case $tt in Line 313  case $tt in
313  'tapTL')  'tapTL')
314    
315    ./testreport -tap -tlm -of ../tools/build_options/linux_amd64_gfortran \    ./testreport -tap -tlm -of ../tools/build_options/linux_amd64_gfortran \
316     $sendCmd >> ../../tr_run_$tt.log 2>&1     -match $MC $sendCmd >> ../../tr_run_$tt.log 2>&1
317    
318    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
319  ;;  ;;

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

  ViewVC Help
Powered by ViewVC 1.1.22