3 # Build and run Test1.exe and compare results with known-good output
8 if ( ! -f ..
/..
/configure.wrf
) then
9 echo "ERROR: must run ../../configure before building esmf_time_f90 unit tests"
15 make superclean
>& /dev
/null
16 cd ..
/..
; make esmf_time_f90_only
>&! external
/esmf_time_f90
/make_tests.out
; cd external
/esmf_time_f90
17 # run tests for both ESMF_ and WRFU_ interfaces...
18 set testoutok
= "Test1.out.correct"
19 foreach tst
( "ESMF" "WRFU" )
20 set testname
= "Test1_${tst}"
21 .
/${testname}.exe >&! ${testname}.out || echo "ERROR ${testname}: failed to execute ./${testname}.exe
, see make_tests.out
" && exit 20
22 # evaluate test results
23 diff ${testoutok} ${testname}.out >& /dev/null
26 echo "PASS
${testname}"
30 echo "FAIL
${testname}"
32 which xxdiff >& /dev/null
35 xxdiff ${testoutok} ${testname}.out
37 diff ${testoutok} ${testname}.out
41 # clean up if all tests passed
42 if ( $allpass == "true
" ) then
43 # make testclean >& /dev/null
44 make superclean >& /dev/null