Debian Codegraph @

exodus/cbind/test/update_all_tests

raw
1 # Copyright (c) 2005 Sandia Corporation. Under the terms of Contract
2 # DE-AC04-94AL85000 with Sandia Corporation, the U.S. Governement
3 # retains certain rights in this software.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are
7 # met:
8 #
9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer.
11 #
12 # * Redistributions in binary form must reproduce the above
13 # copyright notice, this list of conditions and the following
14 # disclaimer in the documentation and/or other materials provided
15 # with the distribution.
16 #
17 # * Neither the name of Sandia Corporation nor the names of its
18 # contributors may be used to endorse or promote products derived
19 # from this software without specific prior written permission.
20 #
21 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 #
33
34 # script to run all tests and compare them to saved dump files.
35 #
36 # To run the tests with valgrind checking, uncomment the next line and comment the
37 # following line. Can also define other prefixes if wanted.
38
39 #set PREFIX = "valgrind --tool=memcheck"
40 set PREFIX = ""
41 set SRCDIR = .
42 set NCDUMP = /Users/gdsjaar/src/SEACAS/bin/ncdump
43 echo "************************************************************************"
44 echo "************************************************************************"
45 rm -f test.output
46 echo "testwt - single precision write test..."
47 echo "begin testwt" > test.output
48 ${PREFIX} ${SRCDIR}/testwt >> test.output
49 echo "end testwt" >> test.output
50 ${NCDUMP} -d5,5 test.exo | grep -v version > ${SRCDIR}/test.dmp
51
52 echo "testrd - single precision read test..."
53 echo "begin testrd" >> test.output
54 ${PREFIX} ${SRCDIR}/testrd | grep -v version > ${SRCDIR}/testrd.dmp
55 echo "end testrd" >> test.output
56
57 echo "testrdv - single precision read test with varid..."
58 echo "begin testrdv" >> test.output
59 ${PREFIX} ${SRCDIR}/testrdv | grep -v version > ${SRCDIR}/testrdv.dmp
60 echo "end testrdv" >> test.output
61
62 echo "testcp_ss - single-to-single precision copy test..."
63 echo "begin testcp_ss" >> test.output
64 ${PREFIX} ${SRCDIR}/testcp >> test.output
65 echo "end testcp_ss" >> test.output
66 ${NCDUMP} -d5,5 testcp.exo | grep -v version > ${SRCDIR}/testcp_ss.dmp
67
68 echo "testcp_sd - single-to-double precision copy test..."
69 echo "begin testcp_sd" >> test.output
70 ${PREFIX} ${SRCDIR}/testcpd >> test.output
71 echo "end testcp_sd" >> test.output
72 ${NCDUMP} -d5,5 testcpd.exo | grep -v version > ${SRCDIR}/testcp_sd.dmp
73
74 echo "testcp_ln - large model to normal model single precision copy test..."
75 echo "begin testcp_ln" >> test.output
76 ${PREFIX} ${SRCDIR}/testcp_ln >> test.output
77 echo "end testcp_ln" >> test.output
78 ${NCDUMP} -d5,5 testcp.exo | grep -v version > ${SRCDIR}/testcp_ln.dmp
79
80 echo "testcp_nl - normal_model to large_model single precision copy test..."
81 echo "begin testcp_nl" >> test.output
82 ${PREFIX} ${SRCDIR}/testcp_nl >> test.output
83 echo "end testcp_nl" >> test.output
84 ${NCDUMP} -d5,5 testcp_nl.exo | grep -v version > ${SRCDIR}/testcp_nl.dmp
85
86 echo "testwt_clb - single precision write test using concatenated puts..."
87 echo "begin testwt_clb" >> test.output
88 ${PREFIX} ${SRCDIR}/testwt_clb >> test.output
89 echo "end testwt_clb" >> test.output
90 ${NCDUMP} -d5,5 test.exo | grep -v version > ${SRCDIR}/test_clb.dmp
91
92 echo "testwtd - double precision write test..."
93 echo "begin testwtd" >> test.output
94 ${PREFIX} ${SRCDIR}/testwtd >> test.output
95 echo "end testwtd" >> test.output
96 ${NCDUMP} -d5,5 test.exo | grep -v version > ${SRCDIR}/testd.dmp
97
98 echo "testrdd - double precision read test..."
99 echo "begin testrdd" >> test.output
100 ${PREFIX} ${SRCDIR}/testrdd | grep -v version >- ${SRCDIR}/testrdd.dmp
101 echo "end testrdd" >> test.output
102
103 echo "testcp_dd - double-to-double precision copy test..."
104 echo "begin testcp_dd" >> test.output
105 ${PREFIX} ${SRCDIR}/testcpd >> test.output
106 echo "end testcp_dd" >> test.output
107 ${NCDUMP} -d5,5 testcpd.exo | grep -v version > ${SRCDIR}/testcp_dd.dmp
108
109 echo "testcp_ds - double-to-single precision copy test..."
110 echo "begin testcp_ds" >> test.output
111 ${PREFIX} ${SRCDIR}/testcp >> test.output
112 echo "end testcp_ds" >> test.output
113 ${NCDUMP} -d5,5 testcp.exo | grep -v version > ${SRCDIR}/testcp_ds.dmp
114
115 echo "testwt1 - single precision write files with several side sets..."
116 echo "testwt1 ... [Expect WEDGE6 warning from this test]"
117 echo "begin testwt1" >> test.output
118 ${PREFIX} ${SRCDIR}/testwt1 >> test.output
119 echo "end testwt1" >> test.output
120 ${NCDUMP} -d5,5 test.exo | grep -v version > ${SRCDIR}/test1.dmp
121
122 echo "testrd1 - single precision read test of a file with several side sets..."
123 echo "testrd1 ... [Expect file create failure error, NOCLOBBER]"
124 echo "testrd1 ... [Expect failure locating elem var 1 for elem block 12]"
125 echo "begin testrd1" >> test.output
126 ${PREFIX} ${SRCDIR}/testrd1 | grep -v version > ${SRCDIR}/testrd1.dmp
127 echo "end testrd1" >> test.output
128
129 echo "testwt_ss - write files to test side sets..."
130 echo "testwt_ss ... [Expect WEDGE6 warning from this test]"
131 echo "begin testwt_ss" >> test.output
132 ${PREFIX} ${SRCDIR}/testwt_ss >> test.output
133 echo "end testwt_ss" >> test.output
134 ${NCDUMP} -d5,5 test.exo | grep -v version > ${SRCDIR}/testwt_ss.dmp
135
136 echo "testrd_ss - read test of a file with several side sets..."
137 echo "testrd_ss ... [Expect warning for NULL sidesets 30 and 31]"
138 echo "begin testrd_ss" >> test.output
139 ${PREFIX} ${SRCDIR}/testrd_ss | grep -v version > ${SRCDIR}/testrd_ss.dmp
140 echo "end testrd_ss" >> test.output
141
142 echo "testwt2 - single precision write 2 files (simultaneously open) test..."
143 echo "begin testwt2" >> test.output
144 ${PREFIX} ${SRCDIR}/testwt2 >> test.output
145 echo "end testwt2" >> test.output
146 ${NCDUMP} -d5,5 test.exo | grep -v version > ${SRCDIR}/test2-1.dmp
147 ${NCDUMP} -d5,5 test2.exo | grep -v version > ${SRCDIR}/test2-2.dmp
148
149 echo "testrdwt - read from one and write to another (simutaneously open) file..."
150 echo "begin testrdwt" >> test.output
151 ${PREFIX} ${SRCDIR}/testrdwt >> test.output
152 echo "end testrdwt" >> test.output
153 ${NCDUMP} -d5,5 test2.exo | grep -v version > ${SRCDIR}/test2.dmp
154
155 echo "testwt_nc - write x y z components of coordinates separately..."
156 echo "begin testwt_nc" >> test.output
157 ${PREFIX} ${SRCDIR}/testwt_nc >> test.output
158 echo "end testwt_nc" >> test.output
159 ${NCDUMP} -d5,5 test.exo | grep -v version > ${SRCDIR}/test.dmp
160
161 echo "testrd_nc - read x y z components of coordinates separately..."
162 echo "begin testrd_nc" >> test.output
163 ${PREFIX} ${SRCDIR}/testrd_nc | grep -v version > ${SRCDIR}/testrd_nc.dmp
164 echo "end testrd" >> test.output
165
166 echo "testwt-zeron - write file with zero nodes and elements..."
167 echo "begin testwt-zeron" >> test.output
168 ${PREFIX} ${SRCDIR}/testwt-zeron >> test.output
169 echo "end testwt-zeron" >> test.output
170 ${NCDUMP} -d5,5 test.exo | grep -v version > ${SRCDIR}/testwt-zeron.dmp
171
172 echo "testrd - read test of file with zero nodes and elements..."
173 echo "begin testrd zero nodes" >> test.output
174 ${PREFIX} ${SRCDIR}/testrd | grep -v version > ${SRCDIR}/testrd_zeron.dmp
175 echo "end testrd zero nodes" >> test.output
176
177 echo "testwt-zeroe - write file with zero elements..."
178 echo "begin testwt-zeroe" >> test.output
179 ${PREFIX} ${SRCDIR}/testwt-zeroe >> test.output
180 echo "end testwt-zeroe" >> test.output
181 ${NCDUMP} -d5,5 test.exo | grep -v version > ${SRCDIR}/testwt-zeroe.dmp
182
183 echo "testrd - read test of file with zero elements..."
184 echo "begin testrd zero elements" >> test.output
185 ${PREFIX} ${SRCDIR}/testrd | grep -v version > ${SRCDIR}/testrd_zeroe.dmp
186 echo "end testrd zero elements" >> test.output
187
188 echo "testwt-one-attrib - read/write test of element attributes - read one at a time..."
189 echo "begin testwt-one-attrib - read attributes one at a time" >> test.output
190 ${PREFIX} ${SRCDIR}/testwt-one-attrib | tee testrd_zeroe.res
191 echo "end testwt-one-attrib - read attributes one at a time" >> test.output
192
193 echo "testwt-nsided - write file with nsided elements..."
194 echo "begin testwt-nsided" >> test.output
195 ${PREFIX} ${SRCDIR}/testwt-nsided >> test.output
196 echo "end testwt-nsided" >> test.output
197 ${NCDUMP} -d5,5 test-nsided.exo | grep -v version > ${SRCDIR}/testwt-nsided.dmp
198
199 echo "testrd-nsided - read file with nsided elements..."
200 echo "begin testrd-nsided" >> test.output
201 ${PREFIX} ${SRCDIR}/testrd-nsided | grep -v version > ${SRCDIR}/testrd-nsided.dmp
202 echo "end testrd-nsided" >> test.output
203
204 echo "testwt-nfaced - write file with nfaced elements..."
205 echo "begin testwt-nfaced" >> test.output
206 ${PREFIX} ${SRCDIR}/testwt-nfaced >> test.output
207 echo "end testwt-nfaced" >> test.output
208 ${NCDUMP} -d5,5 test-nfaced.exo | grep -v version > ${SRCDIR}/testwt-nfaced.dmp
209
210 echo "testrd-nfaced - read file with nfaced elements..."
211 echo "begin testrd-nfaced" >> test.output
212 ${PREFIX} ${SRCDIR}/testrd-nfaced | grep -v version > ${SRCDIR}/testrd-nfaced.dmp
213 echo "end testrd-nfaced" >> test.output
214
215 echo "testwt-long-name - write file with long (64-character) names..."
216 echo "begin testwt-long-name" >> test.output
217 ${PREFIX} ${SRCDIR}/testwt-long-name >> test.output
218 echo "end testwt-long-name" >> test.output
219 ${NCDUMP} -d5,5 test.exo | grep -v version > ${SRCDIR}/testwt-long-name.dmp
220
221 echo "testrd - read long name file truncating to 32 characters on read..."
222 echo "begin testrd (truncate)" >> test.output
223 ${PREFIX} ${SRCDIR}/testrd | grep -v version > ${SRCDIR}/testrd-nm32.dmp
224 echo "end testrd (truncate)" >> test.output
225
226 echo "testrd-long-name - read long name file..."
227 echo "begin testrd-long-name" >> test.output
228 ${PREFIX} ${SRCDIR}/testrd-long-name | grep -v version > ${SRCDIR}/testrd-long-name.dmp
229 echo "end testrd-long-name" >> test.output
230
231 echo "************************************************************************"
232 echo "************************************************************************"