Debian Codegraph @

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

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 #PREFIX="valgrind --tool=memcheck"
13 PREFIX=""
14 SRCDIR=.
15 NCDUMP=@<BINDIR>@/ncdump
16
17 # testwt - single precision write test
18 echo "************************************************************************"
19 echo "************************************************************************"
20 echo "testwt ..."
21 echo "begin testwt" > test.output
22 ${PREFIX} ${SRCDIR}/testwt >> test.output
23 echo "end testwt" >> test.output
24 ${NCDUMP} -d5,5 test.exo | grep -v version | diff - test.dmp | tee testwt.res
25
26 # testrd - single precision read test
27 echo "testrd ..."
28 echo "testrd ... [Expect ex_create NOCLOBBER error from this test]"
29 ${PREFIX} ${SRCDIR}/testrd | grep -v version | diff - testrd.dmp | tee testrd.res
30
31 # testcp_ss - single-to-single precision copy test
32 echo "testcp_ss ..."
33 echo "begin testcp_ss" >> test.output
34 ${PREFIX} ${SRCDIR}/testcp >> test.output
35 echo "end testcp_ss" >> test.output
36 ${NCDUMP} -d5,5 testcp.exo | grep -v version | diff - testcp_ss.dmp | tee testcp_ss.res
37
38 # testcpln - single-to-single, large to normal copy test
39 echo "testcpln ..."
40 echo "begin testcpln" >> test.output
41 ${PREFIX} ${SRCDIR}/testcpln >> test.output
42 echo "end testcpln" >> test.output
43 ${NCDUMP} -d5,5 testcp.exo | grep -v version | diff - testcpln.dmp | tee testcpln.res
44
45 # testcpnl - single-to-single, normal to large copy test
46 echo "testcpnl ..."
47 echo "begin testcpnl" >> test.output
48 ${PREFIX} ${SRCDIR}/testcpnl >> test.output
49 echo "end testcpnl" >> test.output
50 ${NCDUMP} -d5,5 testcpnl.exo | grep -v version | diff - testcpnl.dmp | tee testcpnl.res
51
52 # testwt1 - single precision write test with multiple side sets
53 echo "testwt1 ..."
54 echo "testwt1 ... [Expect WEDGE6 warning from this test]"
55 echo "begin testwt1" >> test.output
56 ${PREFIX} ${SRCDIR}/testwt1 >> test.output
57 echo "end testwt1" >> test.output
58 ${NCDUMP} -d5,5 test.exo | grep -v version | diff - test1.dmp | tee testwt1.res
59
60 # testrd1 - single precision read test with multiple side sets
61 echo "testrd1 ..."
62 echo "testrd1 ... [Expect failure locating elem var 1 for elem block 12]"
63 ${PREFIX} ${SRCDIR}/testrd1 | grep -v version | diff - testrd1.dmp | tee testrd1.res
64
65 # testwtd - double precision write test
66 echo "testwtd ..."
67 echo "begin testwtd" >> test.output
68 ${PREFIX} ${SRCDIR}/testwtd >> test.output
69 echo "end testwtd" >> test.output
70 ${NCDUMP} -d5,5 test.exo | grep -v version | diff - testd.dmp | tee testwtd.res
71
72 # testrdd - double precision read test
73 echo "testrdd ..."
74 ${PREFIX} ${SRCDIR}/testrdd | grep -v version | diff - testrdd.dmp | tee testrdd.res
75
76 # testwt2 - single precision write 2 files (simultaneously open) test
77 echo "testwt2 ..."
78 echo "begin testwt2" >> test.output
79 ${PREFIX} ${SRCDIR}/testwt2 >> test.output | grep -v "property name string"
80 echo "end testwt2" >> test.output
81 ${NCDUMP} -d5,5 test.exo | grep -v version | diff - test2-1.dmp | tee testwt2-1.res
82 ${NCDUMP} -d5,5 test2.exo | grep -v version | diff - test2-2.dmp | tee testwt2-2.res
83
84 echo "testwt_nsid ..."
85 echo "begin testwt_nsid" > test.output
86 ${PREFIX} ${SRCDIR}/testwt_nsid >> test.output
87 echo "end testwt_nsid" >> test.output
88 ${NCDUMP} -d5,5 test-nsided.exo | grep -v version | diff - test-nsided.dmp | tee testwt_nsid.res
89
90 # testrd_nsid - single precision read test
91 echo "testrd_nsid ..."
92 ${PREFIX} ${SRCDIR}/testrd_nsid | grep -v version | diff - testrd_nsid.dmp | tee testrd_nsid.res
93
94 # test_nem - nemesis routines
95 echo "test_nem ..."
96 ${PREFIX} ${SRCDIR}/test_nem | diff -b - test_nem.dmp | tee test_nem.res
97
98 echo "************************************************************************"
99 echo "************************************************************************"
100