3 # Bare bones little script that compiles every architecture on a machine
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?'
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
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
41 echo "$i -------------- build, not exec --------" >>& testomatic.log
47 echo "$i -------------- broken build -----------" >>& testomatic.log