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

Contents of /MITgcm_contrib/test_scripts/faulks/test_lcs

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


Revision 1.5 - (show annotations) (download)
Sun May 30 18:09:39 2004 UTC (22 years, 3 months ago) by edhill
Branch: MAIN
Changes since 1.4: +2 -2 lines
 o fix CVSROOT

1 #! /usr/bin/env bash
2
3 # $Header: /u/gcmpack/MITgcm_contrib/test_scripts/faulks/test_lcs,v 1.4 2004/05/14 17:55:47 edhill Exp $
4
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 ~/d31/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 export CVSROOT='/u/gcmpack'
81 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
94
95 echo "Running testreport using:"
96 cd MITgcm/verification
97 comm="./testreport -adm $IEEE -a edhill@mitgcm.org"
98 if test "x$OPTFILE" != x ; then
99 comm="$comm -of=$OPTFILE"
100 fi
101 echo " \"$comm\""
102 echo "======================"
103 echo
104 $comm
105

  ViewVC Help
Powered by ViewVC 1.1.22