Debian Codegraph @

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

raw
1 # Copyright(C) 1999-2020, 2024 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 #set PREFIX = "valgrind --tool=memcheck"
13 PREFIX=""
14 SRCDIR=.
15 NCDUMP=@<BINDIR>@/ncdump
16 DIFF="diff -w"
17 echo "************************************************************************"
18 echo "************************************************************************"
19 rm -f test.output
20 echo "testwt - single precision write test..."
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} - ${SRCDIR}/test.dmp | tee testwt.res
25
26 echo "testrd - single precision read test..."
27 echo "begin testrd" >> test.output
28 ${PREFIX} ${SRCDIR}/testrd | grep -v version | ${DIFF} - ${SRCDIR}/testrd.dmp | tee testrd.res
29 echo "end testrd" >> test.output
30
31 echo "testcp_ss - single-to-single precision copy test..."
32 echo "begin testcp_ss" >> test.output
33 ${PREFIX} ${SRCDIR}/testcp >> test.output
34 echo "end testcp_ss" >> test.output
35 ${NCDUMP} -d5,5 testcp.exo | grep -v version | ${DIFF} - ${SRCDIR}/testcp_ss.dmp | tee testcp_ss.res
36
37 echo "testcp_sd - single-to-double precision copy test..."
38 echo "begin testcp_sd" >> test.output
39 ${PREFIX} ${SRCDIR}/testcpd >> test.output
40 echo "end testcp_sd" >> test.output
41 ${NCDUMP} -d5,5 testcpd.exo | grep -v version | ${DIFF} - ${SRCDIR}/testcp_sd.dmp | tee testcp_sd.res
42
43 echo "testcp_ln - large model to normal model single precision copy test..."
44 echo "begin testcp_ln" >> test.output
45 ${PREFIX} ${SRCDIR}/testcp_ln >> test.output
46 echo "end testcp_ln" >> test.output
47 ${NCDUMP} -d5,5 testcp.exo | grep -v version | ${DIFF} - ${SRCDIR}/testcp_ln.dmp | tee testcp_ln.res
48
49 echo "testcp_nl - normal_model to large_model single precision copy test..."
50 echo "begin testcp_nl" >> test.output
51 ${PREFIX} ${SRCDIR}/testcp_nl >> test.output
52 echo "end testcp_nl" >> test.output
53 ${NCDUMP} -d5,5 testcp_nl.exo | grep -v version | ${DIFF} - ${SRCDIR}/testcp_nl.dmp | tee testcp_nl.res
54
55 echo "testwt_clb - single precision write test using concatenated puts..."
56 echo "begin testwt_clb" >> test.output
57 ${PREFIX} ${SRCDIR}/testwt_clb >> test.output
58 echo "end testwt_clb" >> test.output
59 ${NCDUMP} -d5,5 test.exo | grep -v version | ${DIFF} - ${SRCDIR}/test_clb.dmp | tee testwt_clb.res
60
61 echo "testwtd - double precision write test..."
62 echo "begin testwtd" >> test.output
63 ${PREFIX} ${SRCDIR}/testwtd >> test.output
64 echo "end testwtd" >> test.output
65 ${NCDUMP} -d5,5 test.exo | grep -v version | ${DIFF} - ${SRCDIR}/testd.dmp | tee testwtd.res
66
67 echo "testrdd - double precision read test..."
68 echo "begin testrdd" >> test.output
69 ${PREFIX} ${SRCDIR}/testrdd | grep -v version | ${DIFF} - ${SRCDIR}/testrdd.dmp | tee testrdd.res
70 echo "end testrdd" >> test.output
71
72 echo "testcp_dd - double-to-double precision copy test..."
73 echo "begin testcp_dd" >> test.output
74 ${PREFIX} ${SRCDIR}/testcpd >> test.output
75 echo "end testcp_dd" >> test.output
76 ${NCDUMP} -d5,5 testcpd.exo | grep -v version | ${DIFF} - ${SRCDIR}/testcp_dd.dmp | tee testcp_dd.res
77
78 echo "testcp_ds - double-to-single precision copy test..."
79 echo "begin testcp_ds" >> test.output
80 ${PREFIX} ${SRCDIR}/testcp >> test.output
81 echo "end testcp_ds" >> test.output
82 ${NCDUMP} -d5,5 testcp.exo | grep -v version | ${DIFF} - ${SRCDIR}/testcp_ds.dmp | tee testcp_ds.res
83
84 echo "testwt1 - single precision write files with several side sets..."
85 echo "testwt1 ... [Expect WEDGE6 warning from this test]"
86 echo "begin testwt1" >> test.output
87 ${PREFIX} ${SRCDIR}/testwt1 >> test.output
88 echo "end testwt1" >> test.output
89 ${NCDUMP} -d5,5 test.exo | grep -v version | ${DIFF} - ${SRCDIR}/test1.dmp | tee testwt1.res
90
91 echo "testrd1 - single precision read test of a file with several side sets..."
92 echo "testrd1 ... [Expect file create failure error, NOCLOBBER]"
93 echo "testrd1 ... [Expect failure locating elem var 1 for elem block 12]"
94 echo "begin testrd1" >> test.output
95 ${PREFIX} ${SRCDIR}/testrd1 | grep -v version | ${DIFF} - ${SRCDIR}/testrd1.dmp | tee testrd1.res
96 echo "end testrd1" >> test.output
97
98 echo "testwt_ss - write files to test side sets..."
99 echo "testwt_ss ... [Expect WEDGE6 warning from this test]"
100 echo "begin testwt_ss" >> test.output
101 ${PREFIX} ${SRCDIR}/testwt_ss >> test.output
102 echo "end testwt_ss" >> test.output
103 ${NCDUMP} -d5,5 test.exo | grep -v version | ${DIFF} - ${SRCDIR}/testwt_ss.dmp | tee testwt_ss.res
104
105 echo "testrd_ss - read test of a file with several side sets..."
106 echo "testrd_ss ... [Expect warning for NULL sidesets 30 and 31]"
107 echo "begin testrd_ss" >> test.output
108 ${PREFIX} ${SRCDIR}/testrd_ss | grep -v version | ${DIFF} - ${SRCDIR}/testrd_ss.dmp | tee testrd_ss.res
109 echo "end testrd_ss" >> test.output
110
111 echo "testwt2 - single precision write 2 files (simultaneously open) test..."
112 echo "begin testwt2" >> test.output
113 ${PREFIX} ${SRCDIR}/testwt2 >> test.output
114 echo "end testwt2" >> test.output
115 ${NCDUMP} -d5,5 test.exo | grep -v version | ${DIFF} - ${SRCDIR}/test2-1.dmp | tee testwt2-1.res
116 ${NCDUMP} -d5,5 test2.exo | grep -v version | ${DIFF} - ${SRCDIR}/test2-2.dmp | tee testwt2-2.res
117
118 echo "testrdwt - read from one and write to another (simultaneously open) file..."
119 echo "begin testrdwt" >> test.output
120 ${PREFIX} ${SRCDIR}/testrdwt >> test.output
121 echo "end testrdwt" >> test.output
122 ${NCDUMP} -d5,5 test2.exo | grep -v version | ${DIFF} - ${SRCDIR}/test2.dmp | tee testrdwt.res
123
124 echo "testwt_nc - write x y z components of coordinates separately..."
125 echo "begin testwt_nc" >> test.output
126 ${PREFIX} ${SRCDIR}/testwt_nc >> test.output
127 echo "end testwt_nc" >> test.output
128 ${NCDUMP} -d5,5 test.exo | grep -v version | ${DIFF} - ${SRCDIR}/test.dmp | tee testwt_nc.res
129
130 echo "testrd_nc - read x y z components of coordinates separately..."
131 echo "begin testrd_nc" >> test.output
132 ${PREFIX} ${SRCDIR}/testrd_nc | grep -v version | ${DIFF} - ${SRCDIR}/testrd_nc.dmp | tee testrd_nc.res
133 echo "end testrd" >> test.output
134
135 echo "testwt-zeron - write file with zero nodes and elements..."
136 echo "begin testwt-zeron" >> test.output
137 ${PREFIX} ${SRCDIR}/testwt-zeron >> test.output
138 echo "end testwt-zeron" >> test.output
139 ${NCDUMP} -d5,5 test.exo | grep -v version | ${DIFF} - ${SRCDIR}/testwt-zeron.dmp | tee testwt-zeron.res
140
141 echo "testrd - read test of file with zero nodes and elements..."
142 echo "begin testrd zero nodes" >> test.output
143 ${PREFIX} ${SRCDIR}/testrd | grep -v version | ${DIFF} - ${SRCDIR}/testrd_zeron.dmp | tee testrd_zeron.res
144 echo "end testrd zero nodes" >> test.output
145
146 echo "testwt-zeroe - write file with zero elements..."
147 echo "begin testwt-zeroe" >> test.output
148 ${PREFIX} ${SRCDIR}/testwt-zeroe >> test.output
149 echo "end testwt-zeroe" >> test.output
150 ${NCDUMP} -d5,5 test.exo | grep -v version | ${DIFF} - ${SRCDIR}/testwt-zeroe.dmp | tee testwt-zeroe.res
151
152 echo "testrd - read test of file with zero elements..."
153 echo "begin testrd zero elements" >> test.output
154 ${PREFIX} ${SRCDIR}/testrd | grep -v version | ${DIFF} - ${SRCDIR}/testrd_zeroe.dmp | tee testrd_zeroe.res
155 echo "end testrd zero elements" >> test.output
156
157 echo "testwt-one-attrib - read/write test of element attributes - read one at a time..."
158 echo "begin testwt-one-attrib - read attributes one at a time" >> test.output
159 ${PREFIX} ${SRCDIR}/testwt-one-attrib | tee testrd_zeroe.res
160 echo "end testwt-one-attrib - read attributes one at a time" >> test.output
161
162 echo "testwt-nsided - write file with nsided elements..."
163 echo "begin testwt-nsided" >> test.output
164 ${PREFIX} ${SRCDIR}/testwt-nsided >> test.output
165 echo "end testwt-nsided" >> test.output
166 ${NCDUMP} -d5,5 test-nsided.exo | grep -v version | ${DIFF} - ${SRCDIR}/testwt-nsided.dmp | tee testwt-nsided.res
167
168 echo "testrd-nsided - read file with nsided elements..."
169 echo "begin testrd-nsided" >> test.output
170 ${PREFIX} ${SRCDIR}/testrd-nsided | grep -v version | ${DIFF} - ${SRCDIR}/testrd-nsided.dmp | tee testrd-nsided.res
171 echo "end testrd-nsided" >> test.output
172
173 echo "testwt-nfaced - write file with nfaced elements..."
174 echo "begin testwt-nfaced" >> test.output
175 ${PREFIX} ${SRCDIR}/testwt-nfaced >> test.output
176 echo "end testwt-nfaced" >> test.output
177 ${NCDUMP} -d5,5 test-nfaced.exo | grep -v version | ${DIFF} - ${SRCDIR}/testwt-nfaced.dmp | tee testwt-nfaced.res
178
179 echo "testrd-nfaced - read file with nfaced elements..."
180 echo "begin testrd-nfaced" >> test.output
181 ${PREFIX} ${SRCDIR}/testrd-nfaced | grep -v version | ${DIFF} - ${SRCDIR}/testrd-nfaced.dmp | tee testrd-nfaced.res
182 echo "end testrd-nfaced" >> test.output
183
184 echo "testwt-long-name - write file with long (64-character) names..."
185 echo "begin testwt-long-name" >> test.output
186 ${PREFIX} ${SRCDIR}/testwt-long-name >> test.output
187 echo "end testwt-long-name" >> test.output
188 ${NCDUMP} -d5,5 test.exo | grep -v version | ${DIFF} - ${SRCDIR}/testwt-long-name.dmp | tee testwt-long-name.res
189
190 echo "testrd - read long name file truncating to 32 characters on read..."
191 echo "begin testrd (truncate)" >> test.output
192 ${PREFIX} ${SRCDIR}/testrd | grep -v version | ${DIFF} - ${SRCDIR}/testrd-nm32.dmp | tee testrd-nm32.res
193 echo "end testrd (truncate)" >> test.output
194
195 echo "testrd-long-name - read long name file..."
196 echo "begin testrd-long-name" >> test.output
197 ${PREFIX} ${SRCDIR}/testrd-long-name | grep -v version | ${DIFF} - ${SRCDIR}/testrd-long-name.dmp | tee testrd-long-name.res
198 echo "end testrd-long-name" >> test.output
199
200 echo "test_nemesis - read long name file..."
201 echo "begin test_nemesis" >> test.output
202 ${PREFIX} ${SRCDIR}/test_nemesis | grep -v version | ${DIFF} - ${SRCDIR}/test_nemesis.dmp | tee test_nemesis.res
203 echo "end test_nemesis" >> test.output
204
205 echo "************************************************************************"
206 echo "************************************************************************"