Merge remote-tracking branch 'origin/release-v4.5'
[WRF.git] / tools / testomatic
blob272ddc5a89c835f8ed8fe9dbe7e7c6099bebf5d9
1 #!/bin/csh
3 # Bare bones little script that compiles every architecture on a machine
4 # JM, 2004 10 13
6 /bin/rm -f testomatic.log
8 # First find out how many we got on this box.
10 if ( ! -e configure ) then
11 echo 'Can not find configure script. Running in the top level directory?'
12 exit 2
13 endif
15 set n = `((echo '-1' | ./configure) | sed '1,/Please select from among the following supported platforms/d' ) | grep '^ [ 1-9][0-9]' | wc | awk '{print $1}' `
17 echo "Number of options to test: $n" >>& testomatic.log
19 set i=1
20 while ( $i <= $n )
22 echo "$i -------------- clean ----------------" >>& testomatic.log
24 clean -a >>& testomatic.log
26 echo "$i -------------- configure ----------------" >>& testomatic.log
28 echo $i | configure >>& testomatic.log
30 echo "$i -------------- compile ----------------" >>& testomatic.log
32 compile em_real >>& testomatic.log
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
37 echo "$i -------------- build ok ---------------" >>& testomatic.log
39 else
41 echo "$i -------------- build, not exec --------" >>& testomatic.log
43 endif
45 else
47 echo "$i -------------- broken build -----------" >>& testomatic.log
49 endif
51 @ i += 1
53 end