/[MITgcm]/MITgcm_contrib/test_scripts/faulks/test_lcs
ViewVC logotype

Diff of /MITgcm_contrib/test_scripts/faulks/test_lcs

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

revision 1.4 by edhill, Fri May 14 17:55:47 2004 UTC revision 1.10 by edhill, Wed Jun 8 15:11:56 2005 UTC
# Line 15  Usage:  $0 [OPTIONS] Line 15  Usage:  $0 [OPTIONS]
15    
16  where possible OPTIONS are:  where possible OPTIONS are:
17    (-help|-h)               print usage    (-help|-h)               print usage
18    (-of | -optfile)FILE     specify an OPTFILE    (-dir | -d) TDIR         specify testing directory
19                               (default=$OPTFILE)                               (def="$TDIR")
20      (-of | -optfile) FILE    specify an OPTFILE
21                                 (def="$OPTFILE")
22    (-[no]ieee)              IEEE math flag    (-[no]ieee)              IEEE math flag
23                               (default=-ieee)                               (def="$IEEE")
24    
25  EOF  EOF
26      exit 1      exit 1
# Line 26  EOF Line 28  EOF
28    
29    
30  # defaults  # defaults
31  OPTFILE="../tools/build_options/linux_ia32_g77"  export PATH='/usr/local/bin:/bin:/usr/bin'
32    OPTFILE=
33    TESTDIR="/scratch/edhill/test_"`hostname`
34  IEEE="-ieee"  IEEE="-ieee"
35    
36  #  Parse options  #  Parse options
# Line 47  for ac_option ; do Line 51  for ac_option ; do
51          -help | --help | -h | --h)          -help | --help | -h | --h)
52              usage ;;              usage ;;
53                    
54            -dir | --dir | -d | --d)
55                ac_prev=TESTDIR ;;
56            -dir=* | --dir=* | -d=* | --d=*)
57                TESTDIR=$ac_optarg ;;
58    
59          -of | --of | -optfile | --optfile)          -of | --of | -optfile | --optfile)
60              ac_prev=OPTFILE ;;              ac_prev=OPTFILE ;;
61          --of=* | -of=* | --optfile=* | -optfile=*)          --of=* | -of=* | --optfile=* | -optfile=*)
# Line 67  for ac_option ; do Line 76  for ac_option ; do
76  done  done
77    
78  echo -n "Creating a temp directory ..."  echo -n "Creating a temp directory ..."
 cd ~/d31/testing  
79  mach=`hostname`  mach=`hostname`
80  file=${OPTFILE##*/}  file=${OPTFILE##*/}
81  tdir=$mach"_"$file  tdir=$TESTDIR"_"$file
82  test -e $tdir  &&  rm -rf $tdir  test -e $tdir  &&  rm -rf $tdir
83  mkdir $tdir  mkdir $tdir
84  echo "  done"  echo "  done"
85    
86  echo -n "Downloading the MITgcm code over CVS ..."  echo -n "Downloading the MITgcm code from CVS pserver..."
87  cd $tdir  cd $tdir
88  export CVSROOT=':pserver:cvsanon@mitgcm.org:/u/gcmpack'  export CVSROOT='/u/gcmpack'
89  cvs co MITgcm > /dev/null 2>&1  cvs co MITgcm > /dev/null 2>&1
90  echo "  done"  echo "  done"
91    
# Line 90  fi Line 98  fi
98  echo "  \"$comm\""  echo "  \"$comm\""
99  echo "======================"  echo "======================"
100  echo  echo
101  $comm  $comm | tail -100
102    
103    echo
104    echo "======================"
105    echo "Cleaning test directories:"
106    ./testreport -clean > /dev/null 2>&1
107    echo "======================"
108    echo
109    
110  echo "Running testreport using:"  echo "Running testreport using:"
111  cd MITgcm/verification  cd MITgcm/verification
112    comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_ifort -a edhill@mitgcm.org"
113    echo "  \"$comm\""
114    echo "======================"
115    echo
116    $comm | tail -100
117    
118    echo
119    echo "======================"
120    echo "Cleaning test directories:"
121    ./testreport -clean > /dev/null 2>&1
122    echo "======================"
123    echo
124    
125    echo "Running testreport using:"
126    cd MITgcm/verification
127    comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_pgf77+authors_fc3 -a edhill@mitgcm.org"
128    echo "  \"$comm\""
129    echo "======================"
130    echo
131    $comm | tail -100
132    
133    echo
134    echo "======================"
135    echo "Cleaning test directories:"
136    ./testreport -clean > /dev/null 2>&1
137    echo "======================"
138    echo
139    
140    echo "Running testreport using:"
141  comm="./testreport -adm $IEEE -a edhill@mitgcm.org"  comm="./testreport -adm $IEEE -a edhill@mitgcm.org"
142  if test "x$OPTFILE" != x ; then  if test "x$OPTFILE" != x ; then
143      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
# Line 101  fi Line 145  fi
145  echo "  \"$comm\""  echo "  \"$comm\""
146  echo "======================"  echo "======================"
147  echo  echo
148  $comm  $comm | tail -100
149    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.22