/[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.14 by jmc, Sun Jun 4 14:00:29 2023 UTC revision 1.15 by jmc, Wed Jun 14 04:18:20 2023 UTC
# Line 49  sendCmd='-send scp -a jm_c@mitgcm.org:te Line 49  sendCmd='-send scp -a jm_c@mitgcm.org:te
49    
50  echo "-- run: \""`basename $0` $*"\" on:" `date` >> $logFile  echo "-- run: \""`basename $0` $*"\" on:" `date` >> $logFile
51  gcmDIR="MITgcm"  gcmDIR="MITgcm"
52  if test -e $gcmDIR/.git/config ; then : else  if test -e $gcmDIR/.git/config ; then : ; else
53    echo " No current clone ==> get a fresh clone" >> $logFile    echo " No current clone ==> get a fresh clone" >> $logFile
54      #rm -f git_Hash prevHash
55    if test -d $gcmDIR ; then /bin/rm -rf $gcmDIR ; fi    if test -d $gcmDIR ; then /bin/rm -rf $gcmDIR ; fi
56    git clone https://github.com/$git_repo/${git_code}.git $gcmDIR    git clone https://github.com/$git_repo/${git_code}.git $gcmDIR
57    ( cd $gcmDIR ; git rev-parse HEAD > ../git_Hash )    ( cd $gcmDIR ; git rev-parse HEAD > ../git_Hash )
# Line 60  fi Line 61  fi
61  #-- check particular set of tests:  #-- check particular set of tests:
62  if test $1 = tap ; then  if test $1 = tap ; then
63  #- Only run this pair of test if MITgcm code got updated:  #- Only run this pair of test if MITgcm code got updated:
64    if test -f prevHash ; then    if test -f git_Hash -a -f prevHash ; then
65     #ls -l prevHash  >> $logFile     #ls -l prevHash  >> $logFile
66      diff -q git_Hash prevHash > /dev/null 2>&1      diff -q git_Hash prevHash > /dev/null 2>&1
67      retv=$?      retv=$?

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

  ViewVC Help
Powered by ViewVC 1.1.22