/[MITgcm]/MITgcm/tools/example_scripts/faulks/test_lcs_fc5
ViewVC logotype

Diff of /MITgcm/tools/example_scripts/faulks/test_lcs_fc5

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

revision 1.2 by edhill, Sat May 20 14:21:46 2006 UTC revision 1.3 by edhill, Sat May 20 21:22:42 2006 UTC
# Line 7  Line 7 
7  #  Test script for MITgcm that should work on most of the lcs.mit.edu  #  Test script for MITgcm that should work on most of the lcs.mit.edu
8  #  Linux machines.  #  Linux machines.
9    
 usage()  
 {  
     cat << EOF  
   
 Usage:  $0 [OPTIONS]  
   
 where possible OPTIONS are:  
   (-help|-h)               print usage  
   (-dir | -d) TDIR         specify testing directory  
                              (def="$TDIR")  
   (-of | -optfile) FILE    specify an OPTFILE  
                              (def="$OPTFILE")  
   (-[no]ieee)              IEEE math flag  
                              (def="$IEEE")  
   
 EOF  
     exit 1  
 }  
   
10    
11  # defaults  # defaults
12  export PATH='/usr/local/bin:/bin:/usr/bin'  export PATH='/usr/local/bin:/bin:/usr/bin'
# Line 33  OPTFILE= Line 14  OPTFILE=
14  TESTDIR="/scratch/edhill/test_"`hostname`  TESTDIR="/scratch/edhill/test_"`hostname`
15  IEEE="-ieee"  IEEE="-ieee"
16    
 #  Parse options  
 ac_prev=  
 for ac_option ; do  
   
     # If the previous option needs an argument, assign it.  
     if test -n "$ac_prev"; then  
         eval "$ac_prev=\$ac_option"  
         ac_prev=  
         continue  
     fi  
   
     ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`  
       
     case $ac_option in  
           
         -help | --help | -h | --h)  
             usage ;;  
           
         -dir | --dir | -d | --d)  
             ac_prev=TESTDIR ;;  
         -dir=* | --dir=* | -d=* | --d=*)  
             TESTDIR=$ac_optarg ;;  
   
         -of | --of | -optfile | --optfile)  
             ac_prev=OPTFILE ;;  
         --of=* | -of=* | --optfile=* | -optfile=*)  
             OPTFILE=$ac_optarg ;;  
   
         -ieee)  
             IEEE="-ieee" ;;  
         -noieee)  
             IEEE= ;;  
           
         *)  
             echo "Error: don't understand argument \"$ac_option\""  
             usage  
             ;;  
           
      esac  
       
 done  
17    
18  #  Turn off stack limit for FIZHI  #  Turn off stack limit for FIZHI
19  ulimit -s unlimited  ulimit -s unlimited
20    
21  echo -n "Creating a temp directory ..."  echo -n "Creating a temp directory ..."
22  mach=`hostname`  mach=`hostname`
23  file=${OPTFILE##*/}  tdir=$TESTDIR
 tdir=$TESTDIR"_"$file  
24  test -e $tdir  &&  rm -rf $tdir  test -e $tdir  &&  rm -rf $tdir
25  mkdir $tdir  mkdir $tdir
26  echo "  done"  echo "  done"
# Line 92  export CVSROOT='/u/gcmpack' Line 31  export CVSROOT='/u/gcmpack'
31  cvs co MITgcm > /dev/null 2>&1  cvs co MITgcm > /dev/null 2>&1
32  echo "  done"  echo "  done"
33    
34    
35    echo "Running testreport using:"
36    cd MITgcm/verification
37    comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_g77 -a edhill@mitgcm.org"
38    echo "  \"$comm\""
39    echo "======================"
40    echo
41    $comm | tail -100
42    
43    echo
44    echo "======================"
45    echo "Cleaning test directories:"
46    ./testreport -clean > /dev/null 2>&1
47    echo "======================"
48    echo
49    
50  echo "Running testreport using:"  echo "Running testreport using:"
51  cd MITgcm/verification  cd MITgcm/verification
52  comm="./testreport $IEEE -a edhill@mitgcm.org"  comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_gfortran -a edhill@mitgcm.org"
 if test "x$OPTFILE" != x ; then  
     comm="$comm -of=$OPTFILE"  
 fi  
53  echo "  \"$comm\""  echo "  \"$comm\""
54  echo "======================"  echo "======================"
55  echo  echo

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

  ViewVC Help
Powered by ViewVC 1.1.22