37 |
# EOF |
# EOF |
38 |
gcmDIR="MITgcm_$sfx" |
gcmDIR="MITgcm_$sfx" |
39 |
cd $TST_DIR |
cd $TST_DIR |
40 |
if test $checkOut = '1' ; then |
#- check for disk space: |
41 |
|
dsp=`df . | tail -1 | awk '{print $5}' | sed 's/%$//'` |
42 |
|
if [ $dsp -gt 99 ] ; then |
43 |
|
echo 'Not enough space on this disk => do not run testreport.' |
44 |
|
df . |
45 |
|
exit |
46 |
|
fi |
47 |
|
if [ $checkOut -eq 1 ] ; then |
48 |
|
if test -d $gcmDIR/CVS ; then |
49 |
|
( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean ) |
50 |
|
echo "cvs update of dir $gcmDIR :" |
51 |
|
( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) |
52 |
|
/bin/rm -rf $gcmDIR/verification/??_aces-${sfx}_????????_? |
53 |
|
else |
54 |
|
echo "no dir: $gcmDIR/CVS => try a fresh check-out" |
55 |
|
checkOut=2 |
56 |
|
fi |
57 |
|
fi |
58 |
|
if [ $checkOut -eq 2 ] ; then |
59 |
if test -e $gcmDIR ; then |
if test -e $gcmDIR ; then |
60 |
rm -rf $gcmDIR |
rm -rf $gcmDIR |
61 |
fi |
fi |
65 |
/usr/bin/find $gcmDIR -type f | xargs chmod g+r |
/usr/bin/find $gcmDIR -type f | xargs chmod g+r |
66 |
else |
else |
67 |
if test -e $gcmDIR/verification ; then |
if test -e $gcmDIR/verification ; then |
68 |
echo "dir $gcmDIR exist" |
echo "dir $gcmDIR/verification exist" |
69 |
else |
else |
70 |
echo "no dir $gcmDIR/verification => exit" |
echo "no dir $gcmDIR/verification => exit" |
71 |
exit |
exit |
73 |
fi |
fi |
74 |
|
|
75 |
cd $gcmDIR/verification |
cd $gcmDIR/verification |
76 |
echo ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx |
echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir aces-$sfx |
77 |
./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx |
./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx |
78 |
|
|
79 |
|
echo ../tools/do_tst_2+2 -mpi -exe \"$EXE\" -o aces-$sfx -a NONE |
80 |
|
../tools/do_tst_2+2 -mpi -exe "$EXE" -o aces-$sfx -a NONE |
81 |
|
|