Debian Codegraph @

packages/seacas/libraries/exodus_for/test/testall.standalone

raw
1 # Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 # of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 # NTESS, the U.S. Government retains certain rights in this software.
4 #
5 # See packages/seacas/LICENSE for details
6
7 # script to run all tests and compare them to saved dump files.
8 #
9 # To run the tests with valgrind checking, uncomment the next line and comment the
10 # following line. Can also define other prefixes if wanted.
11
12 if ($#argv == 0) then
13 set NCDUMP = `which ncdump`
14 else
15 set NCDUMP = $1
16 endif
17
18 #set PREFIX = "valgrind --tool=memcheck"
19 set PREFIX = ""
20 set SRCDIR = .
21
22 # testwt - single precision write test
23 echo "************************************************************************"
24 echo "************************************************************************"
25 echo "testwt ..."
26 echo "begin testwt" > test.output
27 ${PREFIX} ${SRCDIR}/testwt >> test.output
28 echo "end testwt" >> test.output
29 ${NCDUMP} -d5,5 test.exo | grep -v version | diff - test.dmp | tee testwt.res
30
31 # testrd - single precision read test
32 echo "testrd ..."
33 echo "testrd ... [Expect ex_create NOCLOBBER error from this test]"
34 ${PREFIX} ${SRCDIR}/testrd | grep -v version | diff - testrd.dmp | tee testrd.res
35
36 # testcp_ss - single-to-single precision copy test
37 echo "testcp_ss ..."
38 echo "begin testcp_ss" >> test.output
39 ${PREFIX} ${SRCDIR}/testcp >> test.output
40 echo "end testcp_ss" >> test.output
41 ${NCDUMP} -d5,5 testcp.exo | grep -v version | diff - testcp_ss.dmp | tee testcp_ss.res
42
43 # testcpln - single-to-single, large to normal copy test
44 echo "testcpln ..."
45 echo "begin testcpln" >> test.output
46 ${PREFIX} ${SRCDIR}/testcpln >> test.output
47 echo "end testcpln" >> test.output
48 ${NCDUMP} -d5,5 testcp.exo | grep -v version | diff - testcpln.dmp | tee testcpln.res
49
50 # testcpnl - single-to-single, normal to large copy test
51 echo "testcpnl ..."
52 echo "begin testcpnl" >> test.output
53 ${PREFIX} ${SRCDIR}/testcpnl >> test.output
54 echo "end testcpnl" >> test.output
55 ${NCDUMP} -d5,5 testcpnl.exo | grep -v version | diff - testcpnl.dmp | tee testcpnl.res
56
57 # testwt1 - single precision write test with multiple side sets
58 echo "testwt1 ..."
59 echo "testwt1 ... [Expect WEDGE6 warning from this test]"
60 echo "begin testwt1" >> test.output
61 ${PREFIX} ${SRCDIR}/testwt1 >> test.output
62 echo "end testwt1" >> test.output
63 ${NCDUMP} -d5,5 test.exo | grep -v version | diff - test1.dmp | tee testwt1.res
64
65 # testrd1 - single precision read test with multiple side sets
66 echo "testrd1 ..."
67 echo "testrd1 ... [Expect failure locating elem var 1 for elem block 12]"
68 ${PREFIX} ${SRCDIR}/testrd1 | grep -v version | diff - testrd1.dmp | tee testrd1.res
69
70 # testwtd - double precision write test
71 echo "testwtd ..."
72 echo "begin testwtd" >> test.output
73 ${PREFIX} ${SRCDIR}/testwtd >> test.output
74 echo "end testwtd" >> test.output
75 ${NCDUMP} -d5,5 test.exo | grep -v version | diff - testd.dmp | tee testwtd.res
76
77 # testrdd - double precision read test
78 echo "testrdd ..."
79 ${PREFIX} ${SRCDIR}/testrdd | grep -v version | diff - testrdd.dmp | tee testrdd.res
80
81 # testwt2 - single precision write 2 files (simultaneously open) test
82 echo "testwt2 ..."
83 echo "begin testwt2" >> test.output
84 ${PREFIX} ${SRCDIR}/testwt2 >> test.output |&grep -v "property name string"
85 echo "end testwt2" >> test.output
86 ${NCDUMP} -d5,5 test.exo | grep -v version | diff - test2-1.dmp | tee testwt2-1.res
87 ${NCDUMP} -d5,5 test2.exo | grep -v version | diff - test2-2.dmp | tee testwt2-2.res
88
89 echo "testwt_nsid ..."
90 echo "begin testwt_nsid" > test.output
91 ${PREFIX} ${SRCDIR}/testwt_nsid >> test.output
92 echo "end testwt_nsid" >> test.output
93 ${NCDUMP} -d5,5 test-nsided.exo | grep -v version | diff - test-nsided.dmp | tee testwt_nsid.res
94
95 # testrd_nsid - single precision read test
96 echo "testrd_nsid ..."
97 ${PREFIX} ${SRCDIR}/testrd_nsid | grep -v version | diff - testrd_nsid.dmp | tee testrd_nsid.res
98
99 # test_nem - nemesis routines
100 echo "test_nem ..."
101 ${PREFIX} ${SRCDIR}/test_nem | diff - test_nem.dmp | tee test_nem.res
102
103 echo "************************************************************************"
104 echo "************************************************************************"
105