source: lmdz_wrf/trunk/WRFV3/tools/testomatic

Last change on this file was 1, checked in by lfita, 10 years ago
  • -- --- Opening of the WRF+LMDZ coupling repository --- -- -

WRF: version v3.3
LMDZ: version v1818

More details in:

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/csh
2
3# Bare bones little script that compiles every architecture on a machine
4# JM, 2004 10 13
5
6/bin/rm -f testomatic.log
7
8# First find out how many we got on this box.
9
10if ( ! -e configure ) then
11   echo 'Can not find configure script.  Running in the top level directory?'
12   exit 2
13endif
14
15set n = `((echo '-1' | ./configure) | sed '1,/Please select from among the following supported platforms/d' ) | grep '^  [ 1-9][0-9]' | wc | awk '{print $1}' `
16
17echo "Number of options to test: $n" >>& testomatic.log
18
19set i=1
20while ( $i <= $n )
21
22  echo "$i -------------- clean ----------------" >>& testomatic.log
23
24  clean -a >>& testomatic.log
25
26  echo "$i -------------- configure ----------------" >>& testomatic.log
27
28  echo $i | configure  >>& testomatic.log
29
30  echo "$i -------------- compile  ----------------" >>& testomatic.log
31
32  compile em_real >>& testomatic.log
33
34  if ( ( -e main/wrf.exe ) && ( -e main/real.exe ) && ( -e main/ndown.exe ) ) then
35    if ( ( -x main/wrf.exe ) && ( -x main/real.exe ) && ( -x main/ndown.exe ) ) then
36
37      echo "$i -------------- build ok  ---------------" >>& testomatic.log
38
39    else
40
41      echo "$i -------------- build, not exec  --------" >>& testomatic.log
42   
43    endif
44
45  else
46
47    echo "$i -------------- broken build  -----------" >>& testomatic.log
48
49  endif
50
51  @ i += 1
52
53end
54
Note: See TracBrowser for help on using the repository browser.