| 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 |
| 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 |
| 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=*) |
| 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='/u/gcmpack' |
export CVSROOT='/u/gcmpack' |
| 89 |
cvs co MITgcm > /dev/null 2>&1 |
cvs co MITgcm > /dev/null 2>&1 |
| 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 |
|
export PGI=/usr/local/pkg/pgi/pgi-5.2-fc3 |
| 127 |
|
cd MITgcm/verification |
| 128 |
|
comm="./testreport $IEEE -of ../tools/build_options/linux_ia32_pgf77+authors_fc3 -a edhill@mitgcm.org" |
| 129 |
|
echo " \"$comm\"" |
| 130 |
|
echo "======================" |
| 131 |
|
echo |
| 132 |
|
$comm | tail -100 |
| 133 |
|
|
| 134 |
|
echo |
| 135 |
|
echo "======================" |
| 136 |
|
echo "Cleaning test directories:" |
| 137 |
|
./testreport -clean > /dev/null 2>&1 |
| 138 |
|
echo "======================" |
| 139 |
|
echo |
| 140 |
|
|
| 141 |
|
echo "Running testreport using:" |
| 142 |
comm="./testreport -adm $IEEE -a edhill@mitgcm.org" |
comm="./testreport -adm $IEEE -a edhill@mitgcm.org" |
| 143 |
if test "x$OPTFILE" != x ; then |
if test "x$OPTFILE" != x ; then |
| 144 |
comm="$comm -of=$OPTFILE" |
comm="$comm -of=$OPTFILE" |
| 146 |
echo " \"$comm\"" |
echo " \"$comm\"" |
| 147 |
echo "======================" |
echo "======================" |
| 148 |
echo |
echo |
| 149 |
$comm |
$comm | tail -100 |
| 150 |
|
|