1 |
mlosch |
1.1 |
#!/bin/csh -x |
2 |
|
|
#$Header: $ |
3 |
|
|
#$Name: $ |
4 |
|
|
# script to run testreport on csysm3.dmawi.de, without access to sendmail |
5 |
|
|
# which requires a hack |
6 |
|
|
setenv CVS_RSH ssh |
7 |
|
|
|
8 |
|
|
set tmpdir=tmp`date -u +'%Y-%b-%d-%Hh%Mm%Ss'` |
9 |
|
|
set tmpbase=/mlosch |
10 |
|
|
|
11 |
|
|
#if ( ! -e ${tmpbase} ) then |
12 |
|
|
# mkdir ${tmpbase} |
13 |
|
|
#endif |
14 |
|
|
cd ${tmpbase} |
15 |
|
|
mkdir ${tmpdir} |
16 |
|
|
cd ${tmpdir} |
17 |
|
|
set mitdir = MITgcm |
18 |
|
|
if ( -e $mitdir ) then |
19 |
|
|
rm -rf $mitdir |
20 |
|
|
endif |
21 |
|
|
|
22 |
|
|
cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -d ${mitdir} MITgcm >& cvs_co.log |
23 |
|
|
#cvs -d :ext:@mitgcm.org:/u/gcmpack co -d ${mitdir} MITgcm >& $tmpbase/cvs_co.log |
24 |
|
|
if ( $status > 0 ) then |
25 |
|
|
cat cvs_co.log |
26 |
|
|
else |
27 |
|
|
|
28 |
|
|
cd ${mitdir}/verification |
29 |
|
|
./testreport -of=../tools/build_options/darwin_ppc_g77 >& /dev/null |
30 |
|
|
set outdir = `ls -d tr_csysm3.*` |
31 |
|
|
addtotesting $outdir |
32 |
|
|
if ( $status > 0 ) then |
33 |
|
|
echo "something wrong with testreport" |
34 |
|
|
echo "keeping the working directory" |
35 |
|
|
else |
36 |
|
|
# delete working directory |
37 |
|
|
# cd $tmpbase |
38 |
|
|
# rm -rf $tmpdir |
39 |
|
|
endif |
40 |
|
|
endif |