Debian Codegraph @

matio-1.5.30/test/tests/mat5_compressed_write.at

raw
1 # Copyright (c) 2015-2026, The matio contributors
2 # Copyright (c) 2010-2014, Christopher C. Hulbert
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are met:
7 #
8 # 1. Redistributions of source code must retain the above copyright notice, this
9 # list of conditions and the following disclaimer.
10 #
11 # 2. Redistributions in binary form must reproduce the above copyright notice,
12 # this list of conditions and the following disclaimer in the documentation
13 # and/or other materials provided with the distribution.
14 #
15 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
19 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
26 AT_SETUP([Write 1D double array])
27 AT_KEYWORDS([1d])
28 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
29 AT_CHECK([$builddir/test_mat -v 5 -z -c double write_1d_numeric],[0],[],[])
30 AT_CHECK([cp $srcdir/results/write_1d_numeric-double.out expout
31 $builddir/test_mat readvar test_write_1d_numeric.mat a],[0],[expout],[])
32 AT_SKIP_IF([test -z "$MATLABEXE"])
33 AT_CHECK([cp $srcdir/matlab/test_write_1d_numeric.m .
34 $MATLABEXE -nosplash -nojvm -r "type='double';test_write_1d_numeric" | $GREP PASSED],[],[PASSED
35 ],[])
36 AT_CLEANUP
37
38 AT_SETUP([Write 1D single array])
39 AT_KEYWORDS([1d])
40 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
41 AT_CHECK([$builddir/test_mat -v 5 -z -c single write_1d_numeric],[0],[],[])
42 AT_CHECK([cp $srcdir/results/write_1d_numeric-single.out expout
43 $builddir/test_mat readvar test_write_1d_numeric.mat a],[0],[expout],[])
44 AT_SKIP_IF([test -z "$MATLABEXE"])
45 AT_CHECK([cp $srcdir/matlab/test_write_1d_numeric.m .
46 $MATLABEXE -nosplash -nojvm -r "type='single';test_write_1d_numeric" | $GREP PASSED],[0],[PASSED
47 ],[])
48 AT_CLEANUP
49
50 AT_SETUP([Write 1D int64 array])
51 AT_KEYWORDS([1d])
52 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
53 AT_SKIP_IF([test $HAVE_INT64 -eq 0])
54 AT_CHECK([$builddir/test_mat -v 5 -z -c int64 write_1d_numeric],[0],[],[])
55 AT_CHECK([cp $srcdir/results/write_1d_numeric-int64.out expout
56 $builddir/test_mat readvar test_write_1d_numeric.mat a],[0],[expout],[])
57 AT_SKIP_IF([test -z "$MATLABEXE"])
58 AT_CHECK([cp $srcdir/matlab/test_write_1d_numeric.m .
59 $MATLABEXE -nosplash -nojvm -r "type='int64';test_write_1d_numeric" | $GREP PASSED],[0],[PASSED
60 ],[])
61 AT_CLEANUP
62
63 AT_SETUP([Write 1D uint64 array])
64 AT_KEYWORDS([1d])
65 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
66 AT_SKIP_IF([test $HAVE_UINT64 -eq 0])
67 AT_CHECK([$builddir/test_mat -v 5 -z -c uint64 write_1d_numeric],[0],[],[])
68 AT_CHECK([cp $srcdir/results/write_1d_numeric-uint64.out expout
69 $builddir/test_mat readvar test_write_1d_numeric.mat a],[0],[expout],[])
70 AT_SKIP_IF([test -z "$MATLABEXE"])
71 AT_CHECK([cp $srcdir/matlab/test_write_1d_numeric.m .
72 $MATLABEXE -nosplash -nojvm -r "type='uint64';test_write_1d_numeric" | $GREP PASSED],[0],[PASSED
73 ],[])
74 AT_CLEANUP
75
76 AT_SETUP([Write 1D int32 array])
77 AT_KEYWORDS([1d])
78 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
79 AT_CHECK([$builddir/test_mat -v 5 -z -c int32 write_1d_numeric],[0],[],[])
80 AT_CHECK([cp $srcdir/results/write_1d_numeric-int32.out expout
81 $builddir/test_mat readvar test_write_1d_numeric.mat a],[0],[expout],[])
82 AT_SKIP_IF([test -z "$MATLABEXE"])
83 AT_CHECK([cp $srcdir/matlab/test_write_1d_numeric.m .
84 $MATLABEXE -nosplash -nojvm -r "type='int32';test_write_1d_numeric" | $GREP PASSED],[0],[PASSED
85 ],[])
86 AT_CLEANUP
87
88 AT_SETUP([Write 1D uint32 array])
89 AT_KEYWORDS([1d])
90 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
91 AT_CHECK([$builddir/test_mat -v 5 -z -c uint32 write_1d_numeric],[0],[],[])
92 AT_CHECK([cp $srcdir/results/write_1d_numeric-uint32.out expout
93 $builddir/test_mat readvar test_write_1d_numeric.mat a],[0],[expout],[])
94 AT_SKIP_IF([test -z "$MATLABEXE"])
95 AT_CHECK([cp $srcdir/matlab/test_write_1d_numeric.m .
96 $MATLABEXE -nosplash -nojvm -r "type='uint32';test_write_1d_numeric" | $GREP PASSED],[0],[PASSED
97 ],[])
98 AT_CLEANUP
99
100 AT_SETUP([Write 1D int16 array])
101 AT_KEYWORDS([1d])
102 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
103 AT_CHECK([$builddir/test_mat -v 5 -z -c int16 write_1d_numeric],[0],[],[])
104 AT_CHECK([cp $srcdir/results/write_1d_numeric-int16.out expout
105 $builddir/test_mat readvar test_write_1d_numeric.mat a],[0],[expout],[])
106 AT_SKIP_IF([test -z "$MATLABEXE"])
107 AT_CHECK([cp $srcdir/matlab/test_write_1d_numeric.m .
108 $MATLABEXE -nosplash -nojvm -r "type='int16';test_write_1d_numeric" | $GREP PASSED],[0],[PASSED
109 ],[])
110 AT_CLEANUP
111
112 AT_SETUP([Write 1D uint16 array])
113 AT_KEYWORDS([1d])
114 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
115 AT_CHECK([$builddir/test_mat -v 5 -z -c uint16 write_1d_numeric],[0],[],[])
116 AT_CHECK([cp $srcdir/results/write_1d_numeric-uint16.out expout
117 $builddir/test_mat readvar test_write_1d_numeric.mat a],[0],[expout],[])
118 AT_SKIP_IF([test -z "$MATLABEXE"])
119 AT_CHECK([cp $srcdir/matlab/test_write_1d_numeric.m .
120 $MATLABEXE -nosplash -nojvm -r "type='uint16';test_write_1d_numeric" | $GREP PASSED],[0],[PASSED
121 ],[])
122 AT_CLEANUP
123
124 AT_SETUP([Write 1D int8 array])
125 AT_KEYWORDS([1d])
126 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
127 AT_CHECK([$builddir/test_mat -v 5 -z -c int8 write_1d_numeric],[0],[],[])
128 AT_CHECK([cp $srcdir/results/write_1d_numeric-int8.out expout
129 $builddir/test_mat readvar test_write_1d_numeric.mat a],[0],[expout],[])
130 AT_SKIP_IF([test -z "$MATLABEXE"])
131 AT_CHECK([cp $srcdir/matlab/test_write_1d_numeric.m .
132 $MATLABEXE -nosplash -nojvm -r "type='int8';test_write_1d_numeric" | $GREP PASSED],[0],[PASSED
133 ],[])
134 AT_CLEANUP
135
136 AT_SETUP([Write 1D uint8 array])
137 AT_KEYWORDS([1d])
138 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
139 AT_CHECK([$builddir/test_mat -v 5 -z -c uint8 write_1d_numeric],[0],[],[])
140 AT_CHECK([cp $srcdir/results/write_1d_numeric-uint8.out expout
141 $builddir/test_mat readvar test_write_1d_numeric.mat a],[0],[expout],[])
142 AT_SKIP_IF([test -z "$MATLABEXE"])
143 AT_CHECK([cp $srcdir/matlab/test_write_1d_numeric.m .
144 $MATLABEXE -nosplash -nojvm -r "type='uint8';test_write_1d_numeric" | $GREP PASSED],[0],[PASSED
145 ],[])
146 AT_CLEANUP
147
148 AT_SETUP([Write 2D double array])
149 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
150 AT_CHECK([$builddir/test_mat -v 5 -z -c double write_2d_numeric],[0],[],[])
151 AT_CHECK([cp $srcdir/results/write_2d_numeric-double.out expout
152 $builddir/test_mat readvar test_write_2d_numeric.mat a],[0],[expout],[])
153 AT_SKIP_IF([test -z "$MATLABEXE"])
154 AT_CHECK([cp $srcdir/matlab/test_write_2d_numeric.m .
155 $MATLABEXE -nosplash -nojvm -r "type='double';test_write_2d_numeric" | $GREP PASSED],[],[PASSED
156 ],[])
157 AT_CLEANUP
158
159 AT_SETUP([Write 2D single array])
160 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
161 AT_CHECK([$builddir/test_mat -v 5 -z -c single write_2d_numeric],[0],[],[])
162 AT_CHECK([cp $srcdir/results/write_2d_numeric-single.out expout
163 $builddir/test_mat readvar test_write_2d_numeric.mat a],[0],[expout],[])
164 AT_SKIP_IF([test -z "$MATLABEXE"])
165 AT_CHECK([cp $srcdir/matlab/test_write_2d_numeric.m .
166 $MATLABEXE -nosplash -nojvm -r "type='single';test_write_2d_numeric" | $GREP PASSED],[0],[PASSED
167 ],[])
168 AT_CLEANUP
169
170 AT_SETUP([Write 2D int64 array])
171 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
172 AT_SKIP_IF([test $HAVE_INT64 -eq 0])
173 AT_CHECK([$builddir/test_mat -v 5 -z -c int64 write_2d_numeric],[0],[],[])
174 AT_CHECK([cp $srcdir/results/write_2d_numeric-int64.out expout
175 $builddir/test_mat readvar test_write_2d_numeric.mat a],[0],[expout],[])
176 AT_SKIP_IF([test -z "$MATLABEXE"])
177 AT_CHECK([cp $srcdir/matlab/test_write_2d_numeric.m .
178 $MATLABEXE -nosplash -nojvm -r "type='int64';test_write_2d_numeric" | $GREP PASSED],[0],[PASSED
179 ],[])
180 AT_CLEANUP
181
182 AT_SETUP([Write 2D uint64 array])
183 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
184 AT_SKIP_IF([test $HAVE_UINT64 -eq 0])
185 AT_CHECK([$builddir/test_mat -v 5 -z -c uint64 write_2d_numeric],[0],[],[])
186 AT_CHECK([cp $srcdir/results/write_2d_numeric-uint64.out expout
187 $builddir/test_mat readvar test_write_2d_numeric.mat a],[0],[expout],[])
188 AT_SKIP_IF([test -z "$MATLABEXE"])
189 AT_CHECK([cp $srcdir/matlab/test_write_2d_numeric.m .
190 $MATLABEXE -nosplash -nojvm -r "type='uint64';test_write_2d_numeric" | $GREP PASSED],[0],[PASSED
191 ],[])
192 AT_CLEANUP
193
194 AT_SETUP([Write 2D int32 array])
195 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
196 AT_CHECK([$builddir/test_mat -v 5 -z -c int32 write_2d_numeric],[0],[],[])
197 AT_CHECK([cp $srcdir/results/write_2d_numeric-int32.out expout
198 $builddir/test_mat readvar test_write_2d_numeric.mat a],[0],[expout],[])
199 AT_SKIP_IF([test -z "$MATLABEXE"])
200 AT_CHECK([cp $srcdir/matlab/test_write_2d_numeric.m .
201 $MATLABEXE -nosplash -nojvm -r "type='int32';test_write_2d_numeric" | $GREP PASSED],[0],[PASSED
202 ],[])
203 AT_CLEANUP
204
205 AT_SETUP([Write 2D uint32 array])
206 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
207 AT_CHECK([$builddir/test_mat -v 5 -z -c uint32 write_2d_numeric],[0],[],[])
208 AT_CHECK([cp $srcdir/results/write_2d_numeric-uint32.out expout
209 $builddir/test_mat readvar test_write_2d_numeric.mat a],[0],[expout],[])
210 AT_SKIP_IF([test -z "$MATLABEXE"])
211 AT_CHECK([cp $srcdir/matlab/test_write_2d_numeric.m .
212 $MATLABEXE -nosplash -nojvm -r "type='uint32';test_write_2d_numeric" | $GREP PASSED],[0],[PASSED
213 ],[])
214 AT_CLEANUP
215
216 AT_SETUP([Write 2D int16 array])
217 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
218 AT_CHECK([$builddir/test_mat -v 5 -z -c int16 write_2d_numeric],[0],[],[])
219 AT_CHECK([cp $srcdir/results/write_2d_numeric-int16.out expout
220 $builddir/test_mat readvar test_write_2d_numeric.mat a],[0],[expout],[])
221 AT_SKIP_IF([test -z "$MATLABEXE"])
222 AT_CHECK([cp $srcdir/matlab/test_write_2d_numeric.m .
223 $MATLABEXE -nosplash -nojvm -r "type='int16';test_write_2d_numeric" | $GREP PASSED],[0],[PASSED
224 ],[])
225 AT_CLEANUP
226
227 AT_SETUP([Write 2D uint16 array])
228 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
229 AT_CHECK([$builddir/test_mat -v 5 -z -c uint16 write_2d_numeric],[0],[],[])
230 AT_CHECK([cp $srcdir/results/write_2d_numeric-uint16.out expout
231 $builddir/test_mat readvar test_write_2d_numeric.mat a],[0],[expout],[])
232 AT_SKIP_IF([test -z "$MATLABEXE"])
233 AT_CHECK([cp $srcdir/matlab/test_write_2d_numeric.m .
234 $MATLABEXE -nosplash -nojvm -r "type='uint16';test_write_2d_numeric" | $GREP PASSED],[0],[PASSED
235 ],[])
236 AT_CLEANUP
237
238 AT_SETUP([Write 2D int8 array])
239 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
240 AT_CHECK([$builddir/test_mat -v 5 -z -c int8 write_2d_numeric],[0],[],[])
241 AT_CHECK([cp $srcdir/results/write_2d_numeric-int8.out expout
242 $builddir/test_mat readvar test_write_2d_numeric.mat a],[0],[expout],[])
243 AT_SKIP_IF([test -z "$MATLABEXE"])
244 AT_CHECK([cp $srcdir/matlab/test_write_2d_numeric.m .
245 $MATLABEXE -nosplash -nojvm -r "type='int8';test_write_2d_numeric" | $GREP PASSED],[0],[PASSED
246 ],[])
247 AT_CLEANUP
248
249 AT_SETUP([Write 2D uint8 array])
250 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
251 AT_CHECK([$builddir/test_mat -v 5 -z -c uint8 write_2d_numeric],[0],[],[])
252 AT_CHECK([cp $srcdir/results/write_2d_numeric-uint8.out expout
253 $builddir/test_mat readvar test_write_2d_numeric.mat a],[0],[expout],[])
254 AT_SKIP_IF([test -z "$MATLABEXE"])
255 AT_CHECK([cp $srcdir/matlab/test_write_2d_numeric.m .
256 $MATLABEXE -nosplash -nojvm -r "type='uint8';test_write_2d_numeric" | $GREP PASSED],[0],[PASSED
257 ],[])
258 AT_CLEANUP
259
260 AT_SETUP([Write 1D complex double array])
261 AT_KEYWORDS([1d])
262 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
263 AT_CHECK([$builddir/test_mat -v 5 -z -c double write_complex_1d_numeric],[0],[],[])
264 AT_CHECK([cp $srcdir/results/write_complex_1d_numeric-double.out expout
265 $builddir/test_mat readvar test_write_complex_1d_numeric.mat a],[0],[expout],[])
266 AT_SKIP_IF([test -z "$MATLABEXE"])
267 AT_CHECK([cp $srcdir/matlab/test_write_complex_1d_numeric.m .
268 $MATLABEXE -nosplash -nojvm -r "type='double';test_write_complex_1d_numeric" | $GREP PASSED],[0],[PASSED
269 ],[])
270 AT_CLEANUP
271
272 AT_SETUP([Write 1D complex single array])
273 AT_KEYWORDS([1d])
274 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
275 AT_CHECK([$builddir/test_mat -v 5 -z -c single write_complex_1d_numeric],[0],[],[])
276 AT_CHECK([cp $srcdir/results/write_complex_1d_numeric-single.out expout
277 $builddir/test_mat readvar test_write_complex_1d_numeric.mat a],[0],[expout],[])
278 AT_SKIP_IF([test -z "$MATLABEXE"])
279 AT_CHECK([cp $srcdir/matlab/test_write_complex_1d_numeric.m .
280 $MATLABEXE -nosplash -nojvm -r "type='single';test_write_complex_1d_numeric" | $GREP PASSED],[0],[PASSED
281 ],[])
282 AT_CLEANUP
283
284 AT_SETUP([Write 1D complex int64 array])
285 AT_KEYWORDS([1d])
286 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
287 AT_SKIP_IF([test $HAVE_INT64 -eq 0])
288 AT_CHECK([$builddir/test_mat -v 5 -z -c int64 write_complex_1d_numeric],[0],[],[])
289 AT_CHECK([cp $srcdir/results/write_complex_1d_numeric-int64.out expout
290 $builddir/test_mat readvar test_write_complex_1d_numeric.mat a],[0],[expout],[])
291 AT_SKIP_IF([test -z "$MATLABEXE"])
292 AT_CHECK([cp $srcdir/matlab/test_write_complex_1d_numeric.m .
293 $MATLABEXE -nosplash -nojvm -r "type='int64';test_write_complex_1d_numeric" | $GREP PASSED],[0],[PASSED
294 ],[])
295 AT_CLEANUP
296
297 AT_SETUP([Write 1D complex uint64 array])
298 AT_KEYWORDS([1d])
299 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
300 AT_SKIP_IF([test $HAVE_UINT64 -eq 0])
301 AT_CHECK([$builddir/test_mat -v 5 -z -c uint64 write_complex_1d_numeric],[0],[],[])
302 AT_CHECK([cp $srcdir/results/write_complex_1d_numeric-uint64.out expout
303 $builddir/test_mat readvar test_write_complex_1d_numeric.mat a],[0],[expout],[])
304 AT_SKIP_IF([test -z "$MATLABEXE"])
305 AT_CHECK([cp $srcdir/matlab/test_write_complex_1d_numeric.m .
306 $MATLABEXE -nosplash -nojvm -r "type='uint64';test_write_complex_1d_numeric" | $GREP PASSED],[0],[PASSED
307 ],[])
308 AT_CLEANUP
309
310 AT_SETUP([Write 1D complex int32 array])
311 AT_KEYWORDS([1d])
312 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
313 AT_CHECK([$builddir/test_mat -v 5 -z -c int32 write_complex_1d_numeric],[0],[],[])
314 AT_CHECK([cp $srcdir/results/write_complex_1d_numeric-int32.out expout
315 $builddir/test_mat readvar test_write_complex_1d_numeric.mat a],[0],[expout],[])
316 AT_SKIP_IF([test -z "$MATLABEXE"])
317 AT_CHECK([cp $srcdir/matlab/test_write_complex_1d_numeric.m .
318 $MATLABEXE -nosplash -nojvm -r "type='int32';test_write_complex_1d_numeric" | $GREP PASSED],[0],[PASSED
319 ],[])
320 AT_CLEANUP
321
322 AT_SETUP([Write 1D complex uint32 array])
323 AT_KEYWORDS([1d])
324 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
325 AT_CHECK([$builddir/test_mat -v 5 -z -c uint32 write_complex_1d_numeric],[0],[],[])
326 AT_CHECK([cp $srcdir/results/write_complex_1d_numeric-uint32.out expout
327 $builddir/test_mat readvar test_write_complex_1d_numeric.mat a],[0],[expout],[])
328 AT_SKIP_IF([test -z "$MATLABEXE"])
329 AT_CHECK([cp $srcdir/matlab/test_write_complex_1d_numeric.m .
330 $MATLABEXE -nosplash -nojvm -r "type='uint32';test_write_complex_1d_numeric" | $GREP PASSED],[0],[PASSED
331 ],[])
332 AT_CLEANUP
333
334 AT_SETUP([Write 1D complex int16 array])
335 AT_KEYWORDS([1d])
336 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
337 AT_CHECK([$builddir/test_mat -v 5 -z -c int16 write_complex_1d_numeric],[0],[],[])
338 AT_CHECK([cp $srcdir/results/write_complex_1d_numeric-int16.out expout
339 $builddir/test_mat readvar test_write_complex_1d_numeric.mat a],[0],[expout],[])
340 AT_SKIP_IF([test -z "$MATLABEXE"])
341 AT_CHECK([cp $srcdir/matlab/test_write_complex_1d_numeric.m .
342 $MATLABEXE -nosplash -nojvm -r "type='int16';test_write_complex_1d_numeric" | $GREP PASSED],[0],[PASSED
343 ],[])
344 AT_CLEANUP
345
346 AT_SETUP([Write 1D complex uint16 array])
347 AT_KEYWORDS([1d])
348 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
349 AT_CHECK([$builddir/test_mat -v 5 -z -c uint16 write_complex_1d_numeric],[0],[],[])
350 AT_CHECK([cp $srcdir/results/write_complex_1d_numeric-uint16.out expout
351 $builddir/test_mat readvar test_write_complex_1d_numeric.mat a],[0],[expout],[])
352 AT_SKIP_IF([test -z "$MATLABEXE"])
353 AT_CHECK([cp $srcdir/matlab/test_write_complex_1d_numeric.m .
354 $MATLABEXE -nosplash -nojvm -r "type='uint16';test_write_complex_1d_numeric" | $GREP PASSED],[0],[PASSED
355 ],[])
356 AT_CLEANUP
357
358 AT_SETUP([Write 1D complex int8 array])
359 AT_KEYWORDS([1d])
360 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
361 AT_CHECK([$builddir/test_mat -v 5 -z -c int8 write_complex_1d_numeric],[0],[],[])
362 AT_CHECK([cp $srcdir/results/write_complex_1d_numeric-int8.out expout
363 $builddir/test_mat readvar test_write_complex_1d_numeric.mat a],[0],[expout],[])
364 AT_SKIP_IF([test -z "$MATLABEXE"])
365 AT_CHECK([cp $srcdir/matlab/test_write_complex_1d_numeric.m .
366 $MATLABEXE -nosplash -nojvm -r "type='int8';test_write_complex_1d_numeric" | $GREP PASSED],[0],[PASSED
367 ],[])
368 AT_CLEANUP
369
370 AT_SETUP([Write 1D complex uint8 array])
371 AT_KEYWORDS([1d])
372 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
373 AT_CHECK([$builddir/test_mat -v 5 -z -c uint8 write_complex_1d_numeric],[0],[],[])
374 AT_CHECK([cp $srcdir/results/write_complex_1d_numeric-uint8.out expout
375 $builddir/test_mat readvar test_write_complex_1d_numeric.mat a],[0],[expout],[])
376 AT_SKIP_IF([test -z "$MATLABEXE"])
377 AT_CHECK([cp $srcdir/matlab/test_write_complex_1d_numeric.m .
378 $MATLABEXE -nosplash -nojvm -r "type='uint8';test_write_complex_1d_numeric" | $GREP PASSED],[0],[PASSED
379 ],[])
380 AT_CLEANUP
381
382 AT_SETUP([Write 2D complex double array])
383 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
384 AT_CHECK([$builddir/test_mat -v 5 -z -c double write_complex_2d_numeric],[0],[],[])
385 AT_CHECK([cp $srcdir/results/write_complex_2d_numeric-double.out expout
386 $builddir/test_mat readvar test_write_complex_2d_numeric.mat a],[0],[expout],[])
387 AT_SKIP_IF([test -z "$MATLABEXE"])
388 AT_CHECK([cp $srcdir/matlab/test_write_complex_2d_numeric.m .
389 $MATLABEXE -nosplash -nojvm -r "type='double';test_write_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
390 ],[])
391 AT_CLEANUP
392
393 AT_SETUP([Write 2D complex single array])
394 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
395 AT_CHECK([$builddir/test_mat -v 5 -z -c single write_complex_2d_numeric],[0],[],[])
396 AT_CHECK([cp $srcdir/results/write_complex_2d_numeric-single.out expout
397 $builddir/test_mat readvar test_write_complex_2d_numeric.mat a],[0],[expout],[])
398 AT_SKIP_IF([test -z "$MATLABEXE"])
399 AT_CHECK([cp $srcdir/matlab/test_write_complex_2d_numeric.m .
400 $MATLABEXE -nosplash -nojvm -r "type='single';test_write_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
401 ],[])
402 AT_CLEANUP
403
404 AT_SETUP([Write 2D complex int64 array])
405 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
406 AT_SKIP_IF([test $HAVE_INT64 -eq 0])
407 AT_CHECK([$builddir/test_mat -v 5 -z -c int64 write_complex_2d_numeric],[0],[],[])
408 AT_CHECK([cp $srcdir/results/write_complex_2d_numeric-int64.out expout
409 $builddir/test_mat readvar test_write_complex_2d_numeric.mat a],[0],[expout],[])
410 AT_SKIP_IF([test -z "$MATLABEXE"])
411 AT_CHECK([cp $srcdir/matlab/test_write_complex_2d_numeric.m .
412 $MATLABEXE -nosplash -nojvm -r "type='int64';test_write_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
413 ],[])
414 AT_CLEANUP
415
416 AT_SETUP([Write 2D complex uint64 array])
417 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
418 AT_SKIP_IF([test $HAVE_UINT64 -eq 0])
419 AT_CHECK([$builddir/test_mat -v 5 -z -c uint64 write_complex_2d_numeric],[0],[],[])
420 AT_CHECK([cp $srcdir/results/write_complex_2d_numeric-uint64.out expout
421 $builddir/test_mat readvar test_write_complex_2d_numeric.mat a],[0],[expout],[])
422 AT_SKIP_IF([test -z "$MATLABEXE"])
423 AT_CHECK([cp $srcdir/matlab/test_write_complex_2d_numeric.m .
424 $MATLABEXE -nosplash -nojvm -r "type='uint64';test_write_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
425 ],[])
426 AT_CLEANUP
427
428 AT_SETUP([Write 2D complex int32 array])
429 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
430 AT_CHECK([$builddir/test_mat -v 5 -z -c int32 write_complex_2d_numeric],[0],[],[])
431 AT_CHECK([cp $srcdir/results/write_complex_2d_numeric-int32.out expout
432 $builddir/test_mat readvar test_write_complex_2d_numeric.mat a],[0],[expout],[])
433 AT_SKIP_IF([test -z "$MATLABEXE"])
434 AT_CHECK([cp $srcdir/matlab/test_write_complex_2d_numeric.m .
435 $MATLABEXE -nosplash -nojvm -r "type='int32';test_write_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
436 ],[])
437 AT_CLEANUP
438
439 AT_SETUP([Write 2D complex uint32 array])
440 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
441 AT_CHECK([$builddir/test_mat -v 5 -z -c uint32 write_complex_2d_numeric],[0],[],[])
442 AT_CHECK([cp $srcdir/results/write_complex_2d_numeric-uint32.out expout
443 $builddir/test_mat readvar test_write_complex_2d_numeric.mat a],[0],[expout],[])
444 AT_SKIP_IF([test -z "$MATLABEXE"])
445 AT_CHECK([cp $srcdir/matlab/test_write_complex_2d_numeric.m .
446 $MATLABEXE -nosplash -nojvm -r "type='uint32';test_write_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
447 ],[])
448 AT_CLEANUP
449
450 AT_SETUP([Write 2D complex int16 array])
451 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
452 AT_CHECK([$builddir/test_mat -v 5 -z -c int16 write_complex_2d_numeric],[0],[],[])
453 AT_CHECK([cp $srcdir/results/write_complex_2d_numeric-int16.out expout
454 $builddir/test_mat readvar test_write_complex_2d_numeric.mat a],[0],[expout],[])
455 AT_SKIP_IF([test -z "$MATLABEXE"])
456 AT_CHECK([cp $srcdir/matlab/test_write_complex_2d_numeric.m .
457 $MATLABEXE -nosplash -nojvm -r "type='int16';test_write_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
458 ],[])
459 AT_CLEANUP
460
461 AT_SETUP([Write 2D complex uint16 array])
462 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
463 AT_CHECK([$builddir/test_mat -v 5 -z -c uint16 write_complex_2d_numeric],[0],[],[])
464 AT_CHECK([cp $srcdir/results/write_complex_2d_numeric-uint16.out expout
465 $builddir/test_mat readvar test_write_complex_2d_numeric.mat a],[0],[expout],[])
466 AT_SKIP_IF([test -z "$MATLABEXE"])
467 AT_CHECK([cp $srcdir/matlab/test_write_complex_2d_numeric.m .
468 $MATLABEXE -nosplash -nojvm -r "type='uint16';test_write_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
469 ],[])
470 AT_CLEANUP
471
472 AT_SETUP([Write 2D complex int8 array])
473 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
474 AT_CHECK([$builddir/test_mat -v 5 -z -c int8 write_complex_2d_numeric],[0],[],[])
475 AT_CHECK([cp $srcdir/results/write_complex_2d_numeric-int8.out expout
476 $builddir/test_mat readvar test_write_complex_2d_numeric.mat a],[0],[expout],[])
477 AT_SKIP_IF([test -z "$MATLABEXE"])
478 AT_CHECK([cp $srcdir/matlab/test_write_complex_2d_numeric.m .
479 $MATLABEXE -nosplash -nojvm -r "type='int8';test_write_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
480 ],[])
481 AT_CLEANUP
482
483 AT_SETUP([Write 2D complex uint8 array])
484 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
485 AT_CHECK([$builddir/test_mat -v 5 -z -c uint8 write_complex_2d_numeric],[0],[],[])
486 AT_CHECK([cp $srcdir/results/write_complex_2d_numeric-uint8.out expout
487 $builddir/test_mat readvar test_write_complex_2d_numeric.mat a],[0],[expout],[])
488 AT_SKIP_IF([test -z "$MATLABEXE"])
489 AT_CHECK([cp $srcdir/matlab/test_write_complex_2d_numeric.m .
490 $MATLABEXE -nosplash -nojvm -r "type='uint8';test_write_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
491 ],[])
492 AT_CLEANUP
493
494 AT_SETUP([Write 1D logical array])
495 AT_KEYWORDS([logical 1d])
496 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
497 AT_CHECK([$builddir/test_mat -v 5 -z write_1d_logical],[0],[],[])
498 AT_CHECK([cp $srcdir/results/write_1d_numeric-l1-logical.out expout
499 $builddir/test_mat readvar test_write_1d_logical.mat l1],[0],[expout],[])
500 AT_CHECK([cp $srcdir/results/write_1d_numeric-l2-logical.out expout
501 $builddir/test_mat readvar test_write_1d_logical.mat l2],[0],[expout],[])
502 AT_CHECK([cp $srcdir/results/write_1d_numeric-l4-logical.out expout
503 $builddir/test_mat readvar test_write_1d_logical.mat l4],[0],[expout],[])
504 AT_SKIP_IF([test -z "$MATLABEXE"])
505 AT_CHECK([cp $srcdir/matlab/test_write_1d_logical.m .
506 $MATLABEXE -nosplash -nojvm -r "test_write_1d_logical" | $GREP PASSED],[0],[PASSED
507 ],[])
508 AT_CLEANUP
509
510 AT_SETUP([Write 2D logical array])
511 AT_KEYWORDS([logical])
512 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
513 AT_CHECK([$builddir/test_mat -v 5 -z write_2d_logical],[0],[],[])
514 AT_CHECK([cp $srcdir/results/write_2d_numeric-l1-logical.out expout
515 $builddir/test_mat readvar test_write_2d_logical.mat l1],[0],[expout],[])
516 AT_CHECK([cp $srcdir/results/write_2d_numeric-l2-logical.out expout
517 $builddir/test_mat readvar test_write_2d_logical.mat l2],[0],[expout],[])
518 AT_CHECK([cp $srcdir/results/write_2d_numeric-l4-logical.out expout
519 $builddir/test_mat readvar test_write_2d_logical.mat l4],[0],[expout],[])
520 AT_SKIP_IF([test -z "$MATLABEXE"])
521 AT_CHECK([cp $srcdir/matlab/test_write_2d_logical.m .
522 $MATLABEXE -nosplash -nojvm -r "test_write_2d_logical" | $GREP PASSED],[0],[PASSED
523 ],[])
524 AT_CLEANUP
525
526 AT_SETUP([Write 2D sparse double array])
527 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
528 AT_CHECK([$builddir/test_mat -v 5 -z -c double write_sparse],[0],[],[])
529 AT_CHECK([cp $srcdir/results/readvar-write_sparse-sparse_matrix-double.out expout
530 $builddir/test_mat readvar test_write_sparse.mat sparse_matrix],[0],[expout],[])
531 AT_SKIP_IF([test -z "$MATLABEXE"])
532 AT_CHECK([cp $srcdir/matlab/test_write_sparse.m .
533 $MATLABEXE -nosplash -nojvm -r "test_write_sparse" | $GREP PASSED],[0],[PASSED
534 ],[])
535 AT_CLEANUP
536
537 AT_SETUP([Write 2D sparse complex double array])
538 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
539 AT_CHECK([$builddir/test_mat -v 5 -z -c double write_complex_sparse],[0],[],[])
540 AT_CHECK([cp $srcdir/results/readvar-write_complex_sparse-sparse_matrix-double.out expout
541 $builddir/test_mat readvar test_write_sparse_complex.mat sparse_matrix],[0],[expout],[])
542 AT_SKIP_IF([test -z "$MATLABEXE"])
543 AT_CHECK([cp $srcdir/matlab/test_write_sparse_complex.m .
544 $MATLABEXE -nosplash -nojvm -r "test_write_sparse_complex" | $GREP PASSED],[0],[PASSED
545 ],[])
546 AT_CLEANUP
547
548 AT_SETUP([Write 2D all-zero sparse double array])
549 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
550 AT_CHECK([$builddir/test_mat -v 5 -z -c double write_allzero_sparse],[0],[],[])
551 AT_CHECK([cp $srcdir/results/readvar-write_allzero_sparse-sparse_matrix-double.out expout
552 $builddir/test_mat readvar test_write_allzero_sparse.mat sparse_matrix],[0],[expout],[])
553 AT_SKIP_IF([test -z "$MATLABEXE"])
554 AT_CHECK([cp $srcdir/matlab/test_write_allzero_sparse.m .
555 $MATLABEXE -nosplash -nojvm -r "test_write_allzero_sparse" | $GREP PASSED],[0],[PASSED
556 ],[])
557 AT_CLEANUP
558
559 AT_SETUP([Write 2D empty array])
560 AT_KEYWORDS([empty])
561 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
562 AT_CHECK([$builddir/test_mat -v 5 -z -c double write_empty_2d_numeric],[0],[],[])
563 AT_CHECK([cp $srcdir/results/readvar-write_empty_2d_numeric-empty.out expout
564 $builddir/test_mat readvar test_write_empty_2d_numeric.mat empty],[0],[expout],[])
565 AT_SKIP_IF([test -z "$MATLABEXE"])
566 AT_CHECK([cp $srcdir/matlab/test_write_empty.m .
567 $MATLABEXE -nosplash -nojvm -r "test_write_empty" | $GREP PASSED],[0],[PASSED
568 ],[])
569 AT_CLEANUP
570
571 AT_SETUP([Write 1D character array])
572 AT_KEYWORDS([1d])
573 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
574 AT_CHECK([$builddir/test_mat -v 5 -z write_char_1d],[0],[],[])
575 AT_CHECK([cp $srcdir/results/readvar-write_char_1d-a-5.out expout
576 $builddir/test_mat readvar test_write_char_1d.mat a],[0],[expout],[])
577 AT_SKIP_IF([test -z "$MATLABEXE"])
578 AT_CHECK([cp $srcdir/matlab/test_write_char_1d.m .
579 $MATLABEXE -nosplash -nojvm -r "test_write_char_1d" | $GREP PASSED],[0],[PASSED
580 ],[])
581 AT_CLEANUP
582
583 AT_SETUP([Write 2D character array])
584 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
585 AT_CHECK([$builddir/test_mat -v 5 -z write_char_2d],[0],[],[])
586 AT_CHECK([cp $srcdir/results/readvar-write_char_2d-a-5.out expout
587 $builddir/test_mat readvar test_write_char_2d.mat a],[0],[expout],[])
588 AT_SKIP_IF([test -z "$MATLABEXE"])
589 AT_CHECK([cp $srcdir/matlab/test_write_char_2d.m .
590 $MATLABEXE -nosplash -nojvm -r "test_write_char_2d" | $GREP PASSED],[0],[PASSED
591 ],[])
592 AT_CLEANUP
593
594 AT_SETUP([Write 1D Unicode character array])
595 AT_KEYWORDS([unicode 1d])
596 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
597 AT_CHECK([$builddir/test_mat -v 5 -z write_char_unicode_1d],[0],[],[])
598 AT_CHECK([cp $srcdir/results/readvar-write_char_unicode_1d-a-5.out expout
599 $builddir/test_mat readvar test_write_char_unicode_1d.mat a],[0],[expout],[])
600 AT_SKIP_IF([test -z "$MATLABEXE"])
601 AT_CHECK([cp $srcdir/matlab/test_write_char_unicode_1d.m .
602 $MATLABEXE -nosplash -nojvm -r "test_write_char_unicode_1d" | $GREP PASSED],[0],[PASSED
603 ],[])
604 AT_CLEANUP
605
606 AT_SETUP([Write 2D Unicode character array])
607 AT_KEYWORDS([unicode])
608 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
609 AT_CHECK([$builddir/test_mat -v 5 -z write_char_unicode_2d],[0],[],[])
610 AT_CHECK([cp $srcdir/results/readvar-write_char_unicode_2d-a-5.out expout
611 $builddir/test_mat readvar test_write_char_unicode_2d.mat a],[0],[expout],[])
612 AT_SKIP_IF([test -z "$MATLABEXE"])
613 AT_CHECK([cp $srcdir/matlab/test_write_char_unicode_2d.m .
614 $MATLABEXE -nosplash -nojvm -r "test_write_char_unicode_2d" | $GREP PASSED],[0],[PASSED
615 ],[])
616 AT_CLEANUP
617
618 AT_SETUP([Write 1D UTF-8 character array])
619 AT_KEYWORDS([utf8 1d])
620 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
621 AT_CHECK([$builddir/test_mat -v 5 -z write_char_utf8_1d],[0],[],[])
622 AT_CHECK([cp $srcdir/results/readvar-write_char_utf8_1d-a-5.out expout
623 $builddir/test_mat readvar test_write_char_utf8_1d.mat a],[0],[expout],[])
624 AT_SKIP_IF([test -z "$MATLABEXE"])
625 AT_CHECK([cp $srcdir/matlab/test_write_char_utf8_1d.m .
626 $MATLABEXE -nosplash -nojvm -r "test_write_char_utf8_1d" | $GREP PASSED],[0],[PASSED
627 ],[])
628 AT_CLEANUP
629
630 AT_SETUP([Write 2D UTF-8 character array])
631 AT_KEYWORDS([utf8])
632 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
633 AT_CHECK([$builddir/test_mat -v 5 -z write_char_utf8_2d],[0],[],[])
634 AT_CHECK([cp $srcdir/results/readvar-write_char_utf8_2d-a-5.out expout
635 $builddir/test_mat readvar test_write_char_utf8_2d.mat a],[0],[expout],[])
636 AT_SKIP_IF([test -z "$MATLABEXE"])
637 AT_CHECK([cp $srcdir/matlab/test_write_char_utf8_2d.m .
638 $MATLABEXE -nosplash -nojvm -r "test_write_char_utf8_2d" | $GREP PASSED],[0],[PASSED
639 ],[])
640 AT_CLEANUP
641
642 AT_SETUP([Write empty struct])
643 AT_KEYWORDS([empty])
644 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
645 AT_CHECK([$builddir/test_mat -v 5 -z write_empty_struct],[0],[],[])
646 AT_CHECK([cp $srcdir/results/readvar-write_empty_struct-var1.out expout
647 $builddir/test_mat readvar test_write_empty_struct.mat var1],[0],[expout],[])
648 AT_CHECK([cp $srcdir/results/readvar-write_empty_struct-var2.out expout
649 $builddir/test_mat readvar test_write_empty_struct.mat var2],[0],[expout],[])
650 AT_CHECK([cp $srcdir/results/readvar-write_empty_struct-var3.out expout
651 $builddir/test_mat readvar test_write_empty_struct.mat var3],[0],[expout],[])
652 AT_CHECK([cp $srcdir/results/readvar-write_empty_struct-var4-5.out expout
653 $builddir/test_mat readvar test_write_empty_struct.mat var4],[0],[expout],[])
654 AT_SKIP_IF([test -z "$MATLABEXE"])
655 AT_CHECK([cp $srcdir/matlab/test_write_empty_struct.m .
656 $MATLABEXE -nosplash -nojvm -r "test_write_empty_struct" | $GREP PASSED],[0],[PASSED
657 ],[])
658 AT_CLEANUP
659
660 AT_SETUP([Write struct with 2D double fields])
661 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
662 AT_CHECK([$builddir/test_mat -v 5 -z write_struct_2d_numeric],[0],[],[])
663 AT_CHECK([cp $srcdir/results/write_struct_2d_numeric-double.out expout
664 $builddir/test_mat readvar test_write_struct_2d_numeric.mat a],[0],[expout],[])
665 AT_SKIP_IF([test -z "$MATLABEXE"])
666 AT_CHECK([cp $srcdir/matlab/test_write_struct_2d_numeric.m .
667 $MATLABEXE -nosplash -nojvm -r "type='double';test_write_struct_2d_numeric" | $GREP PASSED],[0],[PASSED
668 ],[])
669 AT_CLEANUP
670
671 AT_SETUP([Write struct with 2D single fields])
672 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
673 AT_CHECK([$builddir/test_mat -v 5 -z -c single write_struct_2d_numeric],[0],[],[])
674 AT_CHECK([cp $srcdir/results/write_struct_2d_numeric-single.out expout
675 $builddir/test_mat readvar test_write_struct_2d_numeric.mat a],[0],[expout],[])
676 AT_SKIP_IF([test -z "$MATLABEXE"])
677 AT_CHECK([cp $srcdir/matlab/test_write_struct_2d_numeric.m .
678 $MATLABEXE -nosplash -nojvm -r "type='single';test_write_struct_2d_numeric" | $GREP PASSED],[0],[PASSED
679 ],[])
680 AT_CLEANUP
681
682 AT_SETUP([Write struct with 2D int64 fields])
683 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
684 AT_SKIP_IF([test $HAVE_INT64 -eq 0])
685 AT_CHECK([$builddir/test_mat -v 5 -z -c int64 write_struct_2d_numeric],[0],[],[])
686 AT_CHECK([cp $srcdir/results/write_struct_2d_numeric-int64.out expout
687 $builddir/test_mat readvar test_write_struct_2d_numeric.mat a],[0],[expout],[])
688 AT_SKIP_IF([test -z "$MATLABEXE"])
689 AT_CHECK([cp $srcdir/matlab/test_write_struct_2d_numeric.m .
690 $MATLABEXE -nosplash -nojvm -r "type='int64';test_write_struct_2d_numeric" | $GREP PASSED],[0],[PASSED
691 ],[])
692 AT_CLEANUP
693
694 AT_SETUP([Write struct with 2D uint64 fields])
695 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
696 AT_SKIP_IF([test $HAVE_UINT64 -eq 0])
697 AT_CHECK([$builddir/test_mat -v 5 -z -c uint64 write_struct_2d_numeric],[0],[],[])
698 AT_CHECK([cp $srcdir/results/write_struct_2d_numeric-uint64.out expout
699 $builddir/test_mat readvar test_write_struct_2d_numeric.mat a],[0],[expout],[])
700 AT_SKIP_IF([test -z "$MATLABEXE"])
701 AT_CHECK([cp $srcdir/matlab/test_write_struct_2d_numeric.m .
702 $MATLABEXE -nosplash -nojvm -r "type='uint64';test_write_struct_2d_numeric" | $GREP PASSED],[0],[PASSED
703 ],[])
704 AT_CLEANUP
705
706 AT_SETUP([Write struct with 2D int32 fields])
707 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
708 AT_CHECK([$builddir/test_mat -v 5 -z -c int32 write_struct_2d_numeric],[0],[],[])
709 AT_CHECK([cp $srcdir/results/write_struct_2d_numeric-int32.out expout
710 $builddir/test_mat readvar test_write_struct_2d_numeric.mat a],[0],[expout],[])
711 AT_SKIP_IF([test -z "$MATLABEXE"])
712 AT_CHECK([cp $srcdir/matlab/test_write_struct_2d_numeric.m .
713 $MATLABEXE -nosplash -nojvm -r "type='int32';test_write_struct_2d_numeric" | $GREP PASSED],[0],[PASSED
714 ],[])
715 AT_CLEANUP
716
717 AT_SETUP([Write struct with 2D uint32 fields])
718 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
719 AT_CHECK([$builddir/test_mat -v 5 -z -c uint32 write_struct_2d_numeric],[0],[],[])
720 AT_CHECK([cp $srcdir/results/write_struct_2d_numeric-uint32.out expout
721 $builddir/test_mat readvar test_write_struct_2d_numeric.mat a],[0],[expout],[])
722 AT_SKIP_IF([test -z "$MATLABEXE"])
723 AT_CHECK([cp $srcdir/matlab/test_write_struct_2d_numeric.m .
724 $MATLABEXE -nosplash -nojvm -r "type='uint32';test_write_struct_2d_numeric" | $GREP PASSED],[0],[PASSED
725 ],[])
726 AT_CLEANUP
727
728 AT_SETUP([Write struct with 2D int16 fields])
729 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
730 AT_CHECK([$builddir/test_mat -v 5 -z -c int16 write_struct_2d_numeric],[0],[],[])
731 AT_CHECK([cp $srcdir/results/write_struct_2d_numeric-int16.out expout
732 $builddir/test_mat readvar test_write_struct_2d_numeric.mat a],[0],[expout],[])
733 AT_SKIP_IF([test -z "$MATLABEXE"])
734 AT_CHECK([cp $srcdir/matlab/test_write_struct_2d_numeric.m .
735 $MATLABEXE -nosplash -nojvm -r "type='int16';test_write_struct_2d_numeric" | $GREP PASSED],[0],[PASSED
736 ],[])
737 AT_CLEANUP
738
739 AT_SETUP([Write struct with 2D uint16 fields])
740 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
741 AT_CHECK([$builddir/test_mat -v 5 -z -c uint16 write_struct_2d_numeric],[0],[],[])
742 AT_CHECK([cp $srcdir/results/write_struct_2d_numeric-uint16.out expout
743 $builddir/test_mat readvar test_write_struct_2d_numeric.mat a],[0],[expout],[])
744 AT_SKIP_IF([test -z "$MATLABEXE"])
745 AT_CHECK([cp $srcdir/matlab/test_write_struct_2d_numeric.m .
746 $MATLABEXE -nosplash -nojvm -r "type='uint16';test_write_struct_2d_numeric" | $GREP PASSED],[0],[PASSED
747 ],[])
748 AT_CLEANUP
749
750 AT_SETUP([Write struct with 2D int8 fields])
751 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
752 AT_CHECK([$builddir/test_mat -v 5 -z -c int8 write_struct_2d_numeric],[0],[],[])
753 AT_CHECK([cp $srcdir/results/write_struct_2d_numeric-int8.out expout
754 $builddir/test_mat readvar test_write_struct_2d_numeric.mat a],[0],[expout],[])
755 AT_SKIP_IF([test -z "$MATLABEXE"])
756 AT_CHECK([cp $srcdir/matlab/test_write_struct_2d_numeric.m .
757 $MATLABEXE -nosplash -nojvm -r "type='int8';test_write_struct_2d_numeric" | $GREP PASSED],[0],[PASSED
758 ],[])
759 AT_CLEANUP
760
761 AT_SETUP([Write struct with 2D uint8 fields])
762 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
763 AT_CHECK([$builddir/test_mat -v 5 -z -c uint8 write_struct_2d_numeric],[0],[],[])
764 AT_CHECK([cp $srcdir/results/write_struct_2d_numeric-uint8.out expout
765 $builddir/test_mat readvar test_write_struct_2d_numeric.mat a],[0],[expout],[])
766 AT_SKIP_IF([test -z "$MATLABEXE"])
767 AT_CHECK([cp $srcdir/matlab/test_write_struct_2d_numeric.m .
768 $MATLABEXE -nosplash -nojvm -r "type='uint8';test_write_struct_2d_numeric" | $GREP PASSED],[0],[PASSED
769 ],[])
770 AT_CLEANUP
771
772 AT_SETUP([Write struct with 2D complex double fields])
773 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
774 AT_CHECK([$builddir/test_mat -v 5 -z write_struct_complex_2d_numeric],[0],[],[])
775 AT_CHECK([cp $srcdir/results/write_struct_complex_2d_numeric-double.out expout
776 $builddir/test_mat readvar test_write_struct_complex_2d_numeric.mat a],[0],[expout],[])
777 AT_SKIP_IF([test -z "$MATLABEXE"])
778 AT_CHECK([cp $srcdir/matlab/test_write_struct_complex_2d_numeric.m .
779 $MATLABEXE -nosplash -nojvm -r "type='double';test_write_struct_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
780 ],[])
781 AT_CLEANUP
782
783 AT_SETUP([Write struct with 2D complex single fields])
784 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
785 AT_CHECK([$builddir/test_mat -v 5 -z -c single write_struct_complex_2d_numeric],[0],[],[])
786 AT_CHECK([cp $srcdir/results/write_struct_complex_2d_numeric-single.out expout
787 $builddir/test_mat readvar test_write_struct_complex_2d_numeric.mat a],[0],[expout],[])
788 AT_SKIP_IF([test -z "$MATLABEXE"])
789 AT_CHECK([cp $srcdir/matlab/test_write_struct_complex_2d_numeric.m .
790 $MATLABEXE -nosplash -nojvm -r "type='single';test_write_struct_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
791 ],[])
792 AT_CLEANUP
793
794 AT_SETUP([Write struct with 2D complex int64 fields])
795 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
796 AT_SKIP_IF([test $HAVE_INT64 -eq 0])
797 AT_CHECK([$builddir/test_mat -v 5 -z -c int64 write_struct_complex_2d_numeric],[0],[],[])
798 AT_CHECK([cp $srcdir/results/write_struct_complex_2d_numeric-int64.out expout
799 $builddir/test_mat readvar test_write_struct_complex_2d_numeric.mat a],[0],[expout],[])
800 AT_SKIP_IF([test -z "$MATLABEXE"])
801 AT_CHECK([cp $srcdir/matlab/test_write_struct_complex_2d_numeric.m .
802 $MATLABEXE -nosplash -nojvm -r "type='int64';test_write_struct_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
803 ],[])
804 AT_CLEANUP
805
806 AT_SETUP([Write struct with 2D complex uint64 fields])
807 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
808 AT_SKIP_IF([test $HAVE_UINT64 -eq 0])
809 AT_CHECK([$builddir/test_mat -v 5 -z -c uint64 write_struct_complex_2d_numeric],[0],[],[])
810 AT_CHECK([cp $srcdir/results/write_struct_complex_2d_numeric-uint64.out expout
811 $builddir/test_mat readvar test_write_struct_complex_2d_numeric.mat a],[0],[expout],[])
812 AT_SKIP_IF([test -z "$MATLABEXE"])
813 AT_CHECK([cp $srcdir/matlab/test_write_struct_complex_2d_numeric.m .
814 $MATLABEXE -nosplash -nojvm -r "type='uint64';test_write_struct_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
815 ],[])
816 AT_CLEANUP
817
818 AT_SETUP([Write struct with 2D complex int32 fields])
819 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
820 AT_CHECK([$builddir/test_mat -v 5 -z -c int32 write_struct_complex_2d_numeric],[0],[],[])
821 AT_CHECK([cp $srcdir/results/write_struct_complex_2d_numeric-int32.out expout
822 $builddir/test_mat readvar test_write_struct_complex_2d_numeric.mat a],[0],[expout],[])
823 AT_SKIP_IF([test -z "$MATLABEXE"])
824 AT_CHECK([cp $srcdir/matlab/test_write_struct_complex_2d_numeric.m .
825 $MATLABEXE -nosplash -nojvm -r "type='int32';test_write_struct_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
826 ],[])
827 AT_CLEANUP
828
829 AT_SETUP([Write struct with 2D complex uint32 fields])
830 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
831 AT_CHECK([$builddir/test_mat -v 5 -z -c uint32 write_struct_complex_2d_numeric],[0],[],[])
832 AT_CHECK([cp $srcdir/results/write_struct_complex_2d_numeric-uint32.out expout
833 $builddir/test_mat readvar test_write_struct_complex_2d_numeric.mat a],[0],[expout],[])
834 AT_SKIP_IF([test -z "$MATLABEXE"])
835 AT_CHECK([cp $srcdir/matlab/test_write_struct_complex_2d_numeric.m .
836 $MATLABEXE -nosplash -nojvm -r "type='uint32';test_write_struct_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
837 ],[])
838 AT_CLEANUP
839
840 AT_SETUP([Write struct with 2D complex int16 fields])
841 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
842 AT_CHECK([$builddir/test_mat -v 5 -z -c int16 write_struct_complex_2d_numeric],[0],[],[])
843 AT_CHECK([cp $srcdir/results/write_struct_complex_2d_numeric-int16.out expout
844 $builddir/test_mat readvar test_write_struct_complex_2d_numeric.mat a],[0],[expout],[])
845 AT_SKIP_IF([test -z "$MATLABEXE"])
846 AT_CHECK([cp $srcdir/matlab/test_write_struct_complex_2d_numeric.m .
847 $MATLABEXE -nosplash -nojvm -r "type='int16';test_write_struct_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
848 ],[])
849 AT_CLEANUP
850
851 AT_SETUP([Write struct with 2D complex uint16 fields])
852 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
853 AT_CHECK([$builddir/test_mat -v 5 -z -c uint16 write_struct_complex_2d_numeric],[0],[],[])
854 AT_CHECK([cp $srcdir/results/write_struct_complex_2d_numeric-uint16.out expout
855 $builddir/test_mat readvar test_write_struct_complex_2d_numeric.mat a],[0],[expout],[])
856 AT_SKIP_IF([test -z "$MATLABEXE"])
857 AT_CHECK([cp $srcdir/matlab/test_write_struct_complex_2d_numeric.m .
858 $MATLABEXE -nosplash -nojvm -r "type='uint16';test_write_struct_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
859 ],[])
860 AT_CLEANUP
861
862 AT_SETUP([Write struct with 2D complex int8 fields])
863 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
864 AT_CHECK([$builddir/test_mat -v 5 -z -c int8 write_struct_complex_2d_numeric],[0],[],[])
865 AT_CHECK([cp $srcdir/results/write_struct_complex_2d_numeric-int8.out expout
866 $builddir/test_mat readvar test_write_struct_complex_2d_numeric.mat a],[0],[expout],[])
867 AT_SKIP_IF([test -z "$MATLABEXE"])
868 AT_CHECK([cp $srcdir/matlab/test_write_struct_complex_2d_numeric.m .
869 $MATLABEXE -nosplash -nojvm -r "type='int8';test_write_struct_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
870 ],[])
871 AT_CLEANUP
872
873 AT_SETUP([Write struct with 2D complex uint8 fields])
874 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
875 AT_CHECK([$builddir/test_mat -v 5 -z -c uint8 write_struct_complex_2d_numeric],[0],[],[])
876 AT_CHECK([cp $srcdir/results/write_struct_complex_2d_numeric-uint8.out expout
877 $builddir/test_mat readvar test_write_struct_complex_2d_numeric.mat a],[0],[expout],[])
878 AT_SKIP_IF([test -z "$MATLABEXE"])
879 AT_CHECK([cp $srcdir/matlab/test_write_struct_complex_2d_numeric.m .
880 $MATLABEXE -nosplash -nojvm -r "type='uint8';test_write_struct_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
881 ],[])
882 AT_CLEANUP
883
884 AT_SETUP([Write struct with 2D logical fields])
885 AT_KEYWORDS([logical])
886 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
887 AT_CHECK([$builddir/test_mat -v 5 -z write_struct_2d_logical],[0],[],[])
888 AT_CHECK([cp $srcdir/results/write_struct_2d_numeric-logical.out expout
889 $builddir/test_mat readvar test_write_struct_2d_logical.mat a],[0],[expout],[])
890 AT_SKIP_IF([test -z "$MATLABEXE"])
891 AT_CHECK([cp $srcdir/matlab/test_write_struct_2d_logical.m .
892 $MATLABEXE -nosplash -nojvm -r "test_write_struct_2d_logical" | $GREP PASSED],[0],[PASSED
893 ],[])
894 AT_CLEANUP
895
896 AT_SETUP([Write struct with character fields])
897 AT_KEYWORDS([bug30])
898 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
899 AT_CHECK([$builddir/test_mat -v 5 -z write_struct_char],[0],[],[])
900 AT_CHECK([cp $srcdir/results/write_struct_char-5.out expout
901 $builddir/test_mat readvar test_write_struct_char.mat a],[0],[expout],[])
902 AT_SKIP_IF([test -z "$MATLABEXE"])
903 AT_CHECK([cp $srcdir/matlab/test_write_struct_char.m .
904 $MATLABEXE -nosplash -nojvm -r "test_write_struct_char" | $GREP PASSED],[0],[PASSED
905 ],[])
906 AT_CLEANUP
907
908 AT_SETUP([Write empty cell array])
909 AT_KEYWORDS([empty])
910 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
911 AT_CHECK([$builddir/test_mat -v 5 -z write_empty_cell],[0],[],[])
912 AT_CHECK([cp $srcdir/results/readvar-write_empty_cell-var1.out expout
913 $builddir/test_mat readvar test_write_empty_cell.mat var1],[0],[expout],[])
914 AT_CHECK([cp $srcdir/results/readvar-write_empty_cell-var2.out expout
915 $builddir/test_mat readvar test_write_empty_cell.mat var2],[0],[expout],[])
916 AT_SKIP_IF([test -z "$MATLABEXE"])
917 AT_CHECK([cp $srcdir/matlab/test_write_empty_cell.m .
918 $MATLABEXE -nosplash -nojvm -r "test_write_empty_cell" | $GREP PASSED],[0],[PASSED
919 ],[])
920 AT_CLEANUP
921
922 AT_SETUP([Write cell array with 2D double fields])
923 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
924 AT_CHECK([$builddir/test_mat -v 5 -z write_cell_2d_numeric],[0],[],[])
925 AT_CHECK([cp $srcdir/results/write_cell_2d_numeric-double.out expout
926 $builddir/test_mat readvar test_write_cell_2d_numeric.mat a],[0],[expout],[])
927 AT_SKIP_IF([test -z "$MATLABEXE"])
928 AT_CHECK([cp $srcdir/matlab/test_write_cell_2d_numeric.m .
929 $MATLABEXE -nosplash -nojvm -r "type='double';test_write_cell_2d_numeric" | $GREP PASSED],[0],[PASSED
930 ],[])
931 AT_CLEANUP
932
933 AT_SETUP([Write cell array with 2D single fields])
934 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
935 AT_CHECK([$builddir/test_mat -v 5 -z -c single write_cell_2d_numeric],[0],[],[])
936 AT_CHECK([cp $srcdir/results/write_cell_2d_numeric-single.out expout
937 $builddir/test_mat readvar test_write_cell_2d_numeric.mat a],[0],[expout],[])
938 AT_SKIP_IF([test -z "$MATLABEXE"])
939 AT_CHECK([cp $srcdir/matlab/test_write_cell_2d_numeric.m .
940 $MATLABEXE -nosplash -nojvm -r "type='single';test_write_cell_2d_numeric" | $GREP PASSED],[0],[PASSED
941 ],[])
942 AT_CLEANUP
943
944 AT_SETUP([Write cell array with 2D int64 fields])
945 AT_SKIP_IF([test $HAVE_INT64 -eq 0])
946 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
947 AT_CHECK([$builddir/test_mat -v 5 -z -c int64 write_cell_2d_numeric],[0],[],[])
948 AT_CHECK([cp $srcdir/results/write_cell_2d_numeric-int64.out expout
949 $builddir/test_mat readvar test_write_cell_2d_numeric.mat a],[0],[expout],[])
950 AT_SKIP_IF([test -z "$MATLABEXE"])
951 AT_CHECK([cp $srcdir/matlab/test_write_cell_2d_numeric.m .
952 $MATLABEXE -nosplash -nojvm -r "type='int64';test_write_cell_2d_numeric" | $GREP PASSED],[0],[PASSED
953 ],[])
954 AT_CLEANUP
955
956 AT_SETUP([Write cell array with 2D uint64 fields])
957 AT_SKIP_IF([test $HAVE_UINT64 -eq 0])
958 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
959 AT_CHECK([$builddir/test_mat -v 5 -z -c uint64 write_cell_2d_numeric],[0],[],[])
960 AT_CHECK([cp $srcdir/results/write_cell_2d_numeric-uint64.out expout
961 $builddir/test_mat readvar test_write_cell_2d_numeric.mat a],[0],[expout],[])
962 AT_SKIP_IF([test -z "$MATLABEXE"])
963 AT_CHECK([cp $srcdir/matlab/test_write_cell_2d_numeric.m .
964 $MATLABEXE -nosplash -nojvm -r "type='uint64';test_write_cell_2d_numeric" | $GREP PASSED],[0],[PASSED
965 ],[])
966 AT_CLEANUP
967
968 AT_SETUP([Write cell array with 2D int32 fields])
969 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
970 AT_CHECK([$builddir/test_mat -v 5 -z -c int32 write_cell_2d_numeric],[0],[],[])
971 AT_CHECK([cp $srcdir/results/write_cell_2d_numeric-int32.out expout
972 $builddir/test_mat readvar test_write_cell_2d_numeric.mat a],[0],[expout],[])
973 AT_SKIP_IF([test -z "$MATLABEXE"])
974 AT_CHECK([cp $srcdir/matlab/test_write_cell_2d_numeric.m .
975 $MATLABEXE -nosplash -nojvm -r "type='int32';test_write_cell_2d_numeric" | $GREP PASSED],[0],[PASSED
976 ],[])
977 AT_CLEANUP
978
979 AT_SETUP([Write cell array with 2D uint32 fields])
980 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
981 AT_CHECK([$builddir/test_mat -v 5 -z -c uint32 write_cell_2d_numeric],[0],[],[])
982 AT_CHECK([cp $srcdir/results/write_cell_2d_numeric-uint32.out expout
983 $builddir/test_mat readvar test_write_cell_2d_numeric.mat a],[0],[expout],[])
984 AT_SKIP_IF([test -z "$MATLABEXE"])
985 AT_CHECK([cp $srcdir/matlab/test_write_cell_2d_numeric.m .
986 $MATLABEXE -nosplash -nojvm -r "type='uint32';test_write_cell_2d_numeric" | $GREP PASSED],[0],[PASSED
987 ],[])
988 AT_CLEANUP
989
990 AT_SETUP([Write cell array with 2D int16 fields])
991 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
992 AT_CHECK([$builddir/test_mat -v 5 -z -c int16 write_cell_2d_numeric],[0],[],[])
993 AT_CHECK([cp $srcdir/results/write_cell_2d_numeric-int16.out expout
994 $builddir/test_mat readvar test_write_cell_2d_numeric.mat a],[0],[expout],[])
995 AT_SKIP_IF([test -z "$MATLABEXE"])
996 AT_CHECK([cp $srcdir/matlab/test_write_cell_2d_numeric.m .
997 $MATLABEXE -nosplash -nojvm -r "type='int16';test_write_cell_2d_numeric" | $GREP PASSED],[0],[PASSED
998 ],[])
999 AT_CLEANUP
1000
1001 AT_SETUP([Write cell array with 2D uint16 fields])
1002 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1003 AT_CHECK([$builddir/test_mat -v 5 -z -c uint16 write_cell_2d_numeric],[0],[],[])
1004 AT_CHECK([cp $srcdir/results/write_cell_2d_numeric-uint16.out expout
1005 $builddir/test_mat readvar test_write_cell_2d_numeric.mat a],[0],[expout],[])
1006 AT_SKIP_IF([test -z "$MATLABEXE"])
1007 AT_CHECK([cp $srcdir/matlab/test_write_cell_2d_numeric.m .
1008 $MATLABEXE -nosplash -nojvm -r "type='uint16';test_write_cell_2d_numeric" | $GREP PASSED],[0],[PASSED
1009 ],[])
1010 AT_CLEANUP
1011
1012 AT_SETUP([Write cell array with 2D int8 fields])
1013 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1014 AT_CHECK([$builddir/test_mat -v 5 -z -c int8 write_cell_2d_numeric],[0],[],[])
1015 AT_CHECK([cp $srcdir/results/write_cell_2d_numeric-int8.out expout
1016 $builddir/test_mat readvar test_write_cell_2d_numeric.mat a],[0],[expout],[])
1017 AT_SKIP_IF([test -z "$MATLABEXE"])
1018 AT_CHECK([cp $srcdir/matlab/test_write_cell_2d_numeric.m .
1019 $MATLABEXE -nosplash -nojvm -r "type='int8';test_write_cell_2d_numeric" | $GREP PASSED],[0],[PASSED
1020 ],[])
1021 AT_CLEANUP
1022
1023 AT_SETUP([Write cell array with 2D uint8 fields])
1024 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1025 AT_CHECK([$builddir/test_mat -v 5 -z -c uint8 write_cell_2d_numeric],[0],[],[])
1026 AT_CHECK([cp $srcdir/results/write_cell_2d_numeric-uint8.out expout
1027 $builddir/test_mat readvar test_write_cell_2d_numeric.mat a],[0],[expout],[])
1028 AT_SKIP_IF([test -z "$MATLABEXE"])
1029 AT_CHECK([cp $srcdir/matlab/test_write_cell_2d_numeric.m .
1030 $MATLABEXE -nosplash -nojvm -r "type='uint8';test_write_cell_2d_numeric" | $GREP PASSED],[0],[PASSED
1031 ],[])
1032 AT_CLEANUP
1033
1034 AT_SETUP([Write cell array with 2D complex double fields])
1035 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1036 AT_CHECK([$builddir/test_mat -v 5 -z write_cell_complex_2d_numeric],[0],[],[])
1037 AT_CHECK([cp $srcdir/results/write_cell_complex_2d_numeric-double.out expout
1038 $builddir/test_mat readvar test_write_cell_complex_2d_numeric.mat a],[0],[expout],[])
1039 AT_SKIP_IF([test -z "$MATLABEXE"])
1040 AT_CHECK([cp $srcdir/matlab/test_write_cell_complex_2d_numeric.m .
1041 $MATLABEXE -nosplash -nojvm -r "type='double';test_write_cell_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
1042 ],[])
1043 AT_CLEANUP
1044
1045 AT_SETUP([Write cell array with 2D complex single fields])
1046 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1047 AT_CHECK([$builddir/test_mat -v 5 -z -c single write_cell_complex_2d_numeric],[0],[],[])
1048 AT_CHECK([cp $srcdir/results/write_cell_complex_2d_numeric-single.out expout
1049 $builddir/test_mat readvar test_write_cell_complex_2d_numeric.mat a],[0],[expout],[])
1050 AT_SKIP_IF([test -z "$MATLABEXE"])
1051 AT_CHECK([cp $srcdir/matlab/test_write_cell_complex_2d_numeric.m .
1052 $MATLABEXE -nosplash -nojvm -r "type='single';test_write_cell_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
1053 ],[])
1054 AT_CLEANUP
1055
1056 AT_SETUP([Write cell array with 2D complex int64 fields])
1057 AT_SKIP_IF([test $HAVE_INT64 -eq 0])
1058 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1059 AT_CHECK([$builddir/test_mat -v 5 -z -c int64 write_cell_complex_2d_numeric],[0],[],[])
1060 AT_CHECK([cp $srcdir/results/write_cell_complex_2d_numeric-int64.out expout
1061 $builddir/test_mat readvar test_write_cell_complex_2d_numeric.mat a],[0],[expout],[])
1062 AT_SKIP_IF([test -z "$MATLABEXE"])
1063 AT_CHECK([cp $srcdir/matlab/test_write_cell_complex_2d_numeric.m .
1064 $MATLABEXE -nosplash -nojvm -r "type='int64';test_write_cell_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
1065 ],[])
1066 AT_CLEANUP
1067
1068 AT_SETUP([Write cell array with 2D complex uint64 fields])
1069 AT_SKIP_IF([test $HAVE_UINT64 -eq 0])
1070 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1071 AT_CHECK([$builddir/test_mat -v 5 -z -c uint64 write_cell_complex_2d_numeric],[0],[],[])
1072 AT_CHECK([cp $srcdir/results/write_cell_complex_2d_numeric-uint64.out expout
1073 $builddir/test_mat readvar test_write_cell_complex_2d_numeric.mat a],[0],[expout],[])
1074 AT_SKIP_IF([test -z "$MATLABEXE"])
1075 AT_CHECK([cp $srcdir/matlab/test_write_cell_complex_2d_numeric.m .
1076 $MATLABEXE -nosplash -nojvm -r "type='uint64';test_write_cell_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
1077 ],[])
1078 AT_CLEANUP
1079
1080 AT_SETUP([Write cell array with 2D complex int32 fields])
1081 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1082 AT_CHECK([$builddir/test_mat -v 5 -z -c int32 write_cell_complex_2d_numeric],[0],[],[])
1083 AT_CHECK([cp $srcdir/results/write_cell_complex_2d_numeric-int32.out expout
1084 $builddir/test_mat readvar test_write_cell_complex_2d_numeric.mat a],[0],[expout],[])
1085 AT_SKIP_IF([test -z "$MATLABEXE"])
1086 AT_CHECK([cp $srcdir/matlab/test_write_cell_complex_2d_numeric.m .
1087 $MATLABEXE -nosplash -nojvm -r "type='int32';test_write_cell_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
1088 ],[])
1089 AT_CLEANUP
1090
1091 AT_SETUP([Write cell array with 2D complex uint32 fields])
1092 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1093 AT_CHECK([$builddir/test_mat -v 5 -z -c uint32 write_cell_complex_2d_numeric],[0],[],[])
1094 AT_CHECK([cp $srcdir/results/write_cell_complex_2d_numeric-uint32.out expout
1095 $builddir/test_mat readvar test_write_cell_complex_2d_numeric.mat a],[0],[expout],[])
1096 AT_SKIP_IF([test -z "$MATLABEXE"])
1097 AT_CHECK([cp $srcdir/matlab/test_write_cell_complex_2d_numeric.m .
1098 $MATLABEXE -nosplash -nojvm -r "type='uint32';test_write_cell_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
1099 ],[])
1100 AT_CLEANUP
1101
1102 AT_SETUP([Write cell array with 2D complex int16 fields])
1103 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1104 AT_CHECK([$builddir/test_mat -v 5 -z -c int16 write_cell_complex_2d_numeric],[0],[],[])
1105 AT_CHECK([cp $srcdir/results/write_cell_complex_2d_numeric-int16.out expout
1106 $builddir/test_mat readvar test_write_cell_complex_2d_numeric.mat a],[0],[expout],[])
1107 AT_SKIP_IF([test -z "$MATLABEXE"])
1108 AT_CHECK([cp $srcdir/matlab/test_write_cell_complex_2d_numeric.m .
1109 $MATLABEXE -nosplash -nojvm -r "type='int16';test_write_cell_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
1110 ],[])
1111 AT_CLEANUP
1112
1113 AT_SETUP([Write cell array with 2D complex uint16 fields])
1114 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1115 AT_CHECK([$builddir/test_mat -v 5 -z -c uint16 write_cell_complex_2d_numeric],[0],[],[])
1116 AT_CHECK([cp $srcdir/results/write_cell_complex_2d_numeric-uint16.out expout
1117 $builddir/test_mat readvar test_write_cell_complex_2d_numeric.mat a],[0],[expout],[])
1118 AT_SKIP_IF([test -z "$MATLABEXE"])
1119 AT_CHECK([cp $srcdir/matlab/test_write_cell_complex_2d_numeric.m .
1120 $MATLABEXE -nosplash -nojvm -r "type='uint16';test_write_cell_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
1121 ],[])
1122 AT_CLEANUP
1123
1124 AT_SETUP([Write cell array with 2D complex int8 fields])
1125 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1126 AT_CHECK([$builddir/test_mat -v 5 -z -c int8 write_cell_complex_2d_numeric],[0],[],[])
1127 AT_CHECK([cp $srcdir/results/write_cell_complex_2d_numeric-int8.out expout
1128 $builddir/test_mat readvar test_write_cell_complex_2d_numeric.mat a],[0],[expout],[])
1129 AT_SKIP_IF([test -z "$MATLABEXE"])
1130 AT_CHECK([cp $srcdir/matlab/test_write_cell_complex_2d_numeric.m .
1131 $MATLABEXE -nosplash -nojvm -r "type='int8';test_write_cell_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
1132 ],[])
1133 AT_CLEANUP
1134
1135 AT_SETUP([Write cell array with 2D complex uint8 fields])
1136 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1137 AT_CHECK([$builddir/test_mat -v 5 -z -c uint8 write_cell_complex_2d_numeric],[0],[],[])
1138 AT_CHECK([cp $srcdir/results/write_cell_complex_2d_numeric-uint8.out expout
1139 $builddir/test_mat readvar test_write_cell_complex_2d_numeric.mat a],[0],[expout],[])
1140 AT_SKIP_IF([test -z "$MATLABEXE"])
1141 AT_CHECK([cp $srcdir/matlab/test_write_cell_complex_2d_numeric.m .
1142 $MATLABEXE -nosplash -nojvm -r "type='uint8';test_write_cell_complex_2d_numeric" | $GREP PASSED],[0],[PASSED
1143 ],[])
1144 AT_CLEANUP
1145
1146 AT_SETUP([Write cell array with 2D logical fields])
1147 AT_KEYWORDS([logical])
1148 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1149 AT_CHECK([$builddir/test_mat -v 5 -z write_cell_2d_logical],[0],[],[])
1150 AT_CHECK([cp $srcdir/results/write_cell_numeric-logical.out expout
1151 $builddir/test_mat readvar test_write_cell_2d_logical.mat a],[0],[expout],[])
1152 AT_SKIP_IF([test -z "$MATLABEXE"])
1153 AT_CHECK([cp $srcdir/matlab/test_write_cell_2d_logical.m .
1154 $MATLABEXE -nosplash -nojvm -r "test_write_cell_2d_logical" | $GREP PASSED],[0],[PASSED
1155 ],[])
1156 AT_CLEANUP
1157
1158 AT_SETUP([Write cell array with empty structs])
1159 AT_KEYWORDS([empty bug34])
1160 AT_SKIP_IF([test $COMPRESSION_ZLIB -ne 1])
1161 AT_CHECK([$builddir/test_mat -v 5 -z write_cell_empty_struct],[0],[],[])
1162 AT_CHECK([cp $srcdir/results/readvar-write_cell_empty_struct-var1.out expout
1163 $builddir/test_mat readvar test_write_cell_empty_struct.mat var1],[0],[expout],[])
1164 AT_SKIP_IF([test -z "$MATLABEXE"])
1165 AT_CHECK([cp $srcdir/matlab/test_write_cell_empty_struct.m .
1166 $MATLABEXE -nosplash -nojvm -r "test_write_cell_empty_struct" | $GREP PASSED],[0],[PASSED
1167 ],[])
1168 AT_CLEANUP