source: trunk/WRF.COMMON/WRFV3/tools/testomatic @ 3431

Last change on this file since 3431 was 2759, checked in by aslmd, 2 years ago

adding unmodified code from WRFV3.0.1.1, expurged from useless data +1M size

  • 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.