source: trunk/WRF.COMMON/WRFV3/external/esmf_time_f90/testall.csh @ 2759

Last change on this file since 2759 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.2 KB
Line 
1#!/bin/csh
2#
3# Build and run Test1.exe and compare results with known-good output
4#
5set selflong = $0
6set self = $selflong:t
7
8if ( ! -f ../../configure.wrf ) then
9  echo "ERROR:  must run ../../configure before building esmf_time_f90 unit tests"
10  exit -1
11endif
12
13# build
14set allpass = "true"
15make superclean >& /dev/null
16cd ../.. ; 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... 
18set testoutok = "Test1.out.correct"
19foreach 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
24  set ok = $status
25  if ( $ok == 0 ) then
26    echo "PASS ${testname}"
27  else
28    set allpass = "false"
29    echo
30    echo "FAIL ${testname}"
31    echo
32    which xxdiff >& /dev/null
33    set ok = $status
34    if ( $ok == 0 ) then
35      xxdiff ${testoutok} ${testname}.out
36    else
37      diff ${testoutok} ${testname}.out
38    endif
39  endif
40end
41# clean up if all tests passed
42if ( $allpass == "true" ) then
43#  make testclean >& /dev/null
44  make superclean >& /dev/null
45endif
46
Note: See TracBrowser for help on using the repository browser.