/[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.2 by edhill, Wed Dec 10 20:09:21 2003 UTC revision 1.9 by edhill, Mon Jul 12 16:14:44 2004 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"  OPTFILE=
32    TESTDIR="/scratch/edhill/test_"`hostname`
33  IEEE="-ieee"  IEEE="-ieee"
34    
35  #  Parse options  #  Parse options
# Line 47  for ac_option ; do Line 50  for ac_option ; do
50          -help | --help | -h | --h)          -help | --help | -h | --h)
51              usage ;;              usage ;;
52                    
53            -dir | --dir | -d | --d)
54                ac_prev=TESTDIR ;;
55            -dir=* | --dir=* | -d=* | --d=*)
56                TESTDIR=$ac_optarg ;;
57    
58          -of | --of | -optfile | --optfile)          -of | --of | -optfile | --optfile)
59              ac_prev=OPTFILE ;;              ac_prev=OPTFILE ;;
60          --of=* | -of=* | --optfile=* | -optfile=*)          --of=* | -of=* | --optfile=* | -optfile=*)
# Line 67  for ac_option ; do Line 75  for ac_option ; do
75  done  done
76    
77  echo -n "Creating a temp directory ..."  echo -n "Creating a temp directory ..."
 cd ~/u3_edhill/testing  
78  mach=`hostname`  mach=`hostname`
79  file=${OPTFILE##*/}  file=${OPTFILE##*/}
80  tdir=$mach"_"$file  tdir=$TESTDIR"_"$file
81  test -e $tdir  &&  rm -rf $tdir  test -e $tdir  &&  rm -rf $tdir
82  mkdir $tdir  mkdir $tdir
83  echo "  done"  echo "  done"
84    
85  echo -n "Downloading the MITgcm code over CVS ..."  echo -n "Downloading the MITgcm code from CVS pserver..."
86  cd $tdir  cd $tdir
87  export CVSROOT=':pserver:cvsanon@mitgcm.org:/u/gcmpack'  export CVSROOT='/u/gcmpack'
88  cvs co MITgcm > /dev/null 2>&1  cvs co MITgcm > /dev/null 2>&1
89  echo "  done"  echo "  done"
90    
# Line 90  fi Line 97  fi
97  echo "  \"$comm\""  echo "  \"$comm\""
98  echo "======================"  echo "======================"
99  echo  echo
100  $comm  $comm | tail -100
101    
102    echo
103    echo "======================"
104    echo "Cleaning test directories:"
105    ./testreport -clean > /dev/null 2>&1
106    echo "======================"
107    echo
108    
109    echo "Running testreport using:"
110    comm="./testreport -adm $IEEE -a edhill@mitgcm.org"
111    if test "x$OPTFILE" != x ; then
112        comm="$comm -of=$OPTFILE"
113    fi
114    echo "  \"$comm\""
115    echo "======================"
116    echo
117    $comm | tail -100
118    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.22