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

Annotation of /MITgcm_contrib/test_scripts/faulks/test_lcs

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


Revision 1.2 - (hide annotations) (download)
Wed Dec 10 20:09:21 2003 UTC (22 years, 8 months ago) by edhill
Branch: MAIN
Changes since 1.1: +2 -1 lines
 o add CVSROOT fix to faulks/test_lcs
 o initial (and tested) version of nas/test_lomax_auden

1 edhill 1.1 #! /usr/bin/env bash
2    
3 edhill 1.2 # $Header: /u/u3/gcmpack/MITgcm_contrib/test_scripts/faulks/test_lcs,v 1.1 2003/11/28 17:37:57 edhill Exp $
4 edhill 1.1
5     # Ed Hill
6    
7     # Test script for MITgcm that should work on most of the lcs.mit.edu
8     # Linux machines.
9    
10     usage()
11     {
12     cat << EOF
13    
14     Usage: $0 [OPTIONS]
15    
16     where possible OPTIONS are:
17     (-help|-h) print usage
18     (-of | -optfile)FILE specify an OPTFILE
19     (default=$OPTFILE)
20     (-[no]ieee) IEEE math flag
21     (default=-ieee)
22    
23     EOF
24     exit 1
25     }
26    
27    
28     # defaults
29     OPTFILE="../tools/build_options/linux_ia32_g77"
30     IEEE="-ieee"
31    
32     # Parse options
33     ac_prev=
34     for ac_option ; do
35    
36     # If the previous option needs an argument, assign it.
37     if test -n "$ac_prev"; then
38     eval "$ac_prev=\$ac_option"
39     ac_prev=
40     continue
41     fi
42    
43     ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
44    
45     case $ac_option in
46    
47     -help | --help | -h | --h)
48     usage ;;
49    
50     -of | --of | -optfile | --optfile)
51     ac_prev=OPTFILE ;;
52     --of=* | -of=* | --optfile=* | -optfile=*)
53     OPTFILE=$ac_optarg ;;
54    
55     -ieee)
56     IEEE="-ieee" ;;
57     -noieee)
58     IEEE= ;;
59    
60     *)
61     echo "Error: don't understand argument \"$ac_option\""
62     usage
63     ;;
64    
65     esac
66    
67     done
68    
69     echo -n "Creating a temp directory ..."
70     cd ~/u3_edhill/testing
71     mach=`hostname`
72     file=${OPTFILE##*/}
73     tdir=$mach"_"$file
74     test -e $tdir && rm -rf $tdir
75     mkdir $tdir
76     echo " done"
77    
78     echo -n "Downloading the MITgcm code over CVS ..."
79     cd $tdir
80 edhill 1.2 export CVSROOT=':pserver:cvsanon@mitgcm.org:/u/gcmpack'
81 edhill 1.1 cvs co MITgcm > /dev/null 2>&1
82     echo " done"
83    
84     echo "Running testreport using:"
85     cd MITgcm/verification
86     comm="./testreport $IEEE -a edhill@mitgcm.org"
87     if test "x$OPTFILE" != x ; then
88     comm="$comm -of=$OPTFILE"
89     fi
90     echo " \"$comm\""
91     echo "======================"
92     echo
93     $comm

  ViewVC Help
Powered by ViewVC 1.1.22