| 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([Read 2D double array]) |
| 27 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 28 |
AT_CHECK([cp $srcdir/results/read-var1.out expout |
| 29 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var1],[0],[expout],[]) |
| 30 |
AT_CHECK([cp $srcdir/results/dump-var1.out expout |
| 31 |
$builddir/../tools/matdump -d $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var1],[0],[expout],[]) |
| 32 |
AT_CLEANUP |
| 33 |
|
| 34 |
AT_SETUP([Read 2D single array]) |
| 35 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 36 |
AT_CHECK([cp $srcdir/results/read-var2.out expout |
| 37 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var2],[0],[expout],[]) |
| 38 |
AT_CLEANUP |
| 39 |
|
| 40 |
AT_SETUP([Read 2D int64 array]) |
| 41 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 42 |
AT_CHECK([cp $srcdir/results/read-var3.out expout |
| 43 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var3],[0],[expout],[]) |
| 44 |
AT_CLEANUP |
| 45 |
|
| 46 |
AT_SETUP([Read 2D uint64 array]) |
| 47 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 48 |
AT_CHECK([cp $srcdir/results/read-var4.out expout |
| 49 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var4],[0],[expout],[]) |
| 50 |
AT_CLEANUP |
| 51 |
|
| 52 |
AT_SETUP([Read 2D int32 array]) |
| 53 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 54 |
AT_CHECK([cp $srcdir/results/read-var5.out expout |
| 55 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var5],[0],[expout],[]) |
| 56 |
AT_CLEANUP |
| 57 |
|
| 58 |
AT_SETUP([Read 2D uint32 array]) |
| 59 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 60 |
AT_CHECK([cp $srcdir/results/read-var6.out expout |
| 61 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var6],[0],[expout],[]) |
| 62 |
AT_CLEANUP |
| 63 |
|
| 64 |
AT_SETUP([Read 2D int16 array]) |
| 65 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 66 |
AT_CHECK([cp $srcdir/results/read-var7.out expout |
| 67 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var7],[0],[expout],[]) |
| 68 |
AT_CLEANUP |
| 69 |
|
| 70 |
AT_SETUP([Read 2D uint16 array]) |
| 71 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 72 |
AT_CHECK([cp $srcdir/results/read-var8.out expout |
| 73 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var8],[0],[expout],[]) |
| 74 |
AT_CLEANUP |
| 75 |
|
| 76 |
AT_SETUP([Read 2D int8 array]) |
| 77 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 78 |
AT_CHECK([cp $srcdir/results/read-var9.out expout |
| 79 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var9],[0],[expout],[]) |
| 80 |
AT_CLEANUP |
| 81 |
|
| 82 |
AT_SETUP([Read 2D uint8 array]) |
| 83 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 84 |
AT_CHECK([cp $srcdir/results/read-var10.out expout |
| 85 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var10],[0],[expout],[]) |
| 86 |
AT_CLEANUP |
| 87 |
|
| 88 |
AT_SETUP([Read 2D complex double array]) |
| 89 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 90 |
AT_CHECK([cp $srcdir/results/read-var11.out expout |
| 91 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var11],[0],[expout],[]) |
| 92 |
AT_CHECK([cp $srcdir/results/dump-var11.out expout |
| 93 |
$builddir/../tools/matdump -d $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var11],[0],[expout],[]) |
| 94 |
AT_CLEANUP |
| 95 |
|
| 96 |
AT_SETUP([Read 2D complex single array]) |
| 97 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 98 |
AT_CHECK([cp $srcdir/results/read-var12.out expout |
| 99 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var12],[0],[expout],[]) |
| 100 |
AT_CLEANUP |
| 101 |
|
| 102 |
AT_SETUP([Read 2D complex int64 array]) |
| 103 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 104 |
AT_CHECK([cp $srcdir/results/read-var13.out expout |
| 105 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var13],[0],[expout],[]) |
| 106 |
AT_CLEANUP |
| 107 |
|
| 108 |
AT_SETUP([Read 2D complex uint64 array]) |
| 109 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 110 |
AT_CHECK([cp $srcdir/results/read-var14.out expout |
| 111 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var14],[0],[expout],[]) |
| 112 |
AT_CLEANUP |
| 113 |
|
| 114 |
AT_SETUP([Read 2D complex int32 array]) |
| 115 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 116 |
AT_CHECK([cp $srcdir/results/read-var15.out expout |
| 117 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var15],[0],[expout],[]) |
| 118 |
AT_CLEANUP |
| 119 |
|
| 120 |
AT_SETUP([Read 2D complex uint32 array]) |
| 121 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 122 |
AT_CHECK([cp $srcdir/results/read-var16.out expout |
| 123 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var16],[0],[expout],[]) |
| 124 |
AT_CLEANUP |
| 125 |
|
| 126 |
AT_SETUP([Read 2D complex int16 array]) |
| 127 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 128 |
AT_CHECK([cp $srcdir/results/read-var17.out expout |
| 129 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var17],[0],[expout],[]) |
| 130 |
AT_CLEANUP |
| 131 |
|
| 132 |
AT_SETUP([Read 2D complex uint16 array]) |
| 133 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 134 |
AT_CHECK([cp $srcdir/results/read-var18.out expout |
| 135 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var18],[0],[expout],[]) |
| 136 |
AT_CLEANUP |
| 137 |
|
| 138 |
AT_SETUP([Read 2D complex int8 array]) |
| 139 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 140 |
AT_CHECK([cp $srcdir/results/read-var19.out expout |
| 141 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var19],[0],[expout],[]) |
| 142 |
AT_CLEANUP |
| 143 |
|
| 144 |
AT_SETUP([Read 2D complex uint8 array]) |
| 145 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 146 |
AT_CHECK([cp $srcdir/results/read-var20.out expout |
| 147 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var20],[0],[expout],[]) |
| 148 |
AT_CLEANUP |
| 149 |
|
| 150 |
AT_SETUP([Read 2D logical array]) |
| 151 |
AT_KEYWORDS([logical]) |
| 152 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 153 |
AT_CHECK([cp $srcdir/results/read-var90.out expout |
| 154 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var90],[0],[expout],[]) |
| 155 |
AT_CLEANUP |
| 156 |
|
| 157 |
AT_SETUP([Read sparse double array]) |
| 158 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 159 |
AT_CHECK([cp $srcdir/results/read-var21.out expout |
| 160 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var21],[0],[expout],[]) |
| 161 |
AT_CLEANUP |
| 162 |
|
| 163 |
AT_SETUP([Read sparse complex double array]) |
| 164 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 165 |
AT_CHECK([cp $srcdir/results/read-var22.out expout |
| 166 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var22],[0],[expout],[]) |
| 167 |
AT_CLEANUP |
| 168 |
|
| 169 |
AT_SETUP([Read empty array]) |
| 170 |
AT_KEYWORDS([empty]) |
| 171 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 172 |
AT_CHECK([cp $srcdir/results/read-var23.out expout |
| 173 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var23],[0],[expout],[]) |
| 174 |
AT_CLEANUP |
| 175 |
|
| 176 |
AT_SETUP([Read 2D character array]) |
| 177 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 178 |
AT_CHECK([cp $srcdir/results/read-var24-73.out expout |
| 179 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var24],[0],[expout],[]) |
| 180 |
AT_CLEANUP |
| 181 |
|
| 182 |
AT_SETUP([Read 2D Unicode character array]) |
| 183 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 184 |
AT_CHECK([cp $srcdir/results/read-var95-73.out expout |
| 185 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var95],[0],[expout],[]) |
| 186 |
AT_CLEANUP |
| 187 |
|
| 188 |
AT_SETUP([Read empty struct]) |
| 189 |
AT_KEYWORDS([empty]) |
| 190 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 191 |
AT_CHECK([cp $srcdir/results/read-var25.out expout |
| 192 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var25],[0],[expout],[]) |
| 193 |
AT_CLEANUP |
| 194 |
|
| 195 |
AT_SETUP([Read empty struct with fields]) |
| 196 |
AT_KEYWORDS([empty]) |
| 197 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 198 |
AT_CHECK([cp $srcdir/results/read-var26.out expout |
| 199 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var26],[0],[expout],[]) |
| 200 |
AT_CLEANUP |
| 201 |
|
| 202 |
AT_SETUP([Read struct with empty fields]) |
| 203 |
AT_KEYWORDS([empty]) |
| 204 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 205 |
AT_CHECK([cp $srcdir/results/read-var27.out expout |
| 206 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var27],[0],[expout],[]) |
| 207 |
AT_CLEANUP |
| 208 |
|
| 209 |
AT_SETUP([Read struct with double fields]) |
| 210 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 211 |
AT_CHECK([cp $srcdir/results/read-var28.out expout |
| 212 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var28],[0],[expout],[]) |
| 213 |
AT_CLEANUP |
| 214 |
|
| 215 |
AT_SETUP([Read struct with single fields]) |
| 216 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 217 |
AT_CHECK([cp $srcdir/results/read-var29.out expout |
| 218 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var29],[0],[expout],[]) |
| 219 |
AT_CLEANUP |
| 220 |
|
| 221 |
AT_SETUP([Read struct with int64 fields]) |
| 222 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 223 |
AT_CHECK([cp $srcdir/results/read-var30.out expout |
| 224 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var30],[0],[expout],[]) |
| 225 |
AT_CLEANUP |
| 226 |
|
| 227 |
AT_SETUP([Read struct with uint64 fields]) |
| 228 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 229 |
AT_CHECK([cp $srcdir/results/read-var31.out expout |
| 230 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var31],[0],[expout],[]) |
| 231 |
AT_CLEANUP |
| 232 |
|
| 233 |
AT_SETUP([Read struct with int32 fields]) |
| 234 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 235 |
AT_CHECK([cp $srcdir/results/read-var32.out expout |
| 236 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var32],[0],[expout],[]) |
| 237 |
AT_CLEANUP |
| 238 |
|
| 239 |
AT_SETUP([Read struct with uint32 fields]) |
| 240 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 241 |
AT_CHECK([cp $srcdir/results/read-var33.out expout |
| 242 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var33],[0],[expout],[]) |
| 243 |
AT_CLEANUP |
| 244 |
|
| 245 |
AT_SETUP([Read struct with int16 fields]) |
| 246 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 247 |
AT_CHECK([cp $srcdir/results/read-var34.out expout |
| 248 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var34],[0],[expout],[]) |
| 249 |
AT_CLEANUP |
| 250 |
|
| 251 |
AT_SETUP([Read struct with uint16 fields]) |
| 252 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 253 |
AT_CHECK([cp $srcdir/results/read-var35.out expout |
| 254 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var35],[0],[expout],[]) |
| 255 |
AT_CLEANUP |
| 256 |
|
| 257 |
AT_SETUP([Read struct with int8 fields]) |
| 258 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 259 |
AT_CHECK([cp $srcdir/results/read-var36.out expout |
| 260 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var36],[0],[expout],[]) |
| 261 |
AT_CLEANUP |
| 262 |
|
| 263 |
AT_SETUP([Read struct with uint8 fields]) |
| 264 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 265 |
AT_CHECK([cp $srcdir/results/read-var37.out expout |
| 266 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var37],[0],[expout],[]) |
| 267 |
AT_CLEANUP |
| 268 |
|
| 269 |
AT_SETUP([Read struct with complex double fields]) |
| 270 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 271 |
AT_CHECK([cp $srcdir/results/read-var38.out expout |
| 272 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var38],[0],[expout],[]) |
| 273 |
AT_CLEANUP |
| 274 |
|
| 275 |
AT_SETUP([Read struct with complex single fields]) |
| 276 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 277 |
AT_CHECK([cp $srcdir/results/read-var39.out expout |
| 278 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var39],[0],[expout],[]) |
| 279 |
AT_CLEANUP |
| 280 |
|
| 281 |
AT_SETUP([Read struct with complex int64 fields]) |
| 282 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 283 |
AT_CHECK([cp $srcdir/results/read-var40.out expout |
| 284 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var40],[0],[expout],[]) |
| 285 |
AT_CLEANUP |
| 286 |
|
| 287 |
AT_SETUP([Read struct with complex uint64 fields]) |
| 288 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 289 |
AT_CHECK([cp $srcdir/results/read-var41.out expout |
| 290 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var41],[0],[expout],[]) |
| 291 |
AT_CLEANUP |
| 292 |
|
| 293 |
AT_SETUP([Read struct with complex int32 fields]) |
| 294 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 295 |
AT_CHECK([cp $srcdir/results/read-var42.out expout |
| 296 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var42],[0],[expout],[]) |
| 297 |
AT_CLEANUP |
| 298 |
|
| 299 |
AT_SETUP([Read struct with complex uint32 fields]) |
| 300 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 301 |
AT_CHECK([cp $srcdir/results/read-var43.out expout |
| 302 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var43],[0],[expout],[]) |
| 303 |
AT_CLEANUP |
| 304 |
|
| 305 |
AT_SETUP([Read struct with complex int16 fields]) |
| 306 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 307 |
AT_CHECK([cp $srcdir/results/read-var44.out expout |
| 308 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var44],[0],[expout],[]) |
| 309 |
AT_CLEANUP |
| 310 |
|
| 311 |
AT_SETUP([Read struct with complex uint16 fields]) |
| 312 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 313 |
AT_CHECK([cp $srcdir/results/read-var45.out expout |
| 314 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var45],[0],[expout],[]) |
| 315 |
AT_CLEANUP |
| 316 |
|
| 317 |
AT_SETUP([Read struct with complex int8 fields]) |
| 318 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 319 |
AT_CHECK([cp $srcdir/results/read-var46.out expout |
| 320 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var46],[0],[expout],[]) |
| 321 |
AT_CLEANUP |
| 322 |
|
| 323 |
AT_SETUP([Read struct with complex uint8 fields]) |
| 324 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 325 |
AT_CHECK([cp $srcdir/results/read-var47.out expout |
| 326 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var47],[0],[expout],[]) |
| 327 |
AT_CLEANUP |
| 328 |
|
| 329 |
AT_SETUP([Read struct with logical fields]) |
| 330 |
AT_KEYWORDS([logical]) |
| 331 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 332 |
AT_CHECK([cp $srcdir/results/read-var91.out expout |
| 333 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var91],[0],[expout],[]) |
| 334 |
AT_CLEANUP |
| 335 |
|
| 336 |
AT_SETUP([Read struct with sparse double fields]) |
| 337 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 338 |
AT_CHECK([cp $srcdir/results/read-var48.out expout |
| 339 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var48],[0],[expout],[]) |
| 340 |
AT_CLEANUP |
| 341 |
|
| 342 |
AT_SETUP([Read struct with sparse complex double fields]) |
| 343 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 344 |
AT_CHECK([cp $srcdir/results/read-var49.out expout |
| 345 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var49],[0],[expout],[]) |
| 346 |
AT_CLEANUP |
| 347 |
|
| 348 |
AT_SETUP([Read struct with character fields]) |
| 349 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 350 |
AT_CHECK([cp $srcdir/results/read-var50.out expout |
| 351 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var50],[0],[expout],[]) |
| 352 |
AT_CLEANUP |
| 353 |
|
| 354 |
AT_SETUP([Read empty cell array]) |
| 355 |
AT_KEYWORDS([empty]) |
| 356 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 357 |
AT_CHECK([cp $srcdir/results/read-var51.out expout |
| 358 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var51],[0],[expout],[]) |
| 359 |
AT_CLEANUP |
| 360 |
|
| 361 |
AT_SETUP([Read cell array with empty arrays]) |
| 362 |
AT_KEYWORDS([empty]) |
| 363 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 364 |
AT_CHECK([cp $srcdir/results/read-var52.out expout |
| 365 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var52],[0],[expout],[]) |
| 366 |
AT_CLEANUP |
| 367 |
|
| 368 |
AT_SETUP([Read cell array with double arrays]) |
| 369 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 370 |
AT_CHECK([cp $srcdir/results/read-var53.out expout |
| 371 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var53],[0],[expout],[]) |
| 372 |
AT_CLEANUP |
| 373 |
|
| 374 |
AT_SETUP([Read cell array with single arrays]) |
| 375 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 376 |
AT_CHECK([cp $srcdir/results/read-var54.out expout |
| 377 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var54],[0],[expout],[]) |
| 378 |
AT_CLEANUP |
| 379 |
|
| 380 |
AT_SETUP([Read cell array with int64 arrays]) |
| 381 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 382 |
AT_CHECK([cp $srcdir/results/read-var55.out expout |
| 383 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var55],[0],[expout],[]) |
| 384 |
AT_CLEANUP |
| 385 |
|
| 386 |
AT_SETUP([Read cell array with uint64 arrays]) |
| 387 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 388 |
AT_CHECK([cp $srcdir/results/read-var56.out expout |
| 389 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var56],[0],[expout],[]) |
| 390 |
AT_CLEANUP |
| 391 |
|
| 392 |
AT_SETUP([Read cell array with int32 arrays]) |
| 393 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 394 |
AT_CHECK([cp $srcdir/results/read-var57.out expout |
| 395 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var57],[0],[expout],[]) |
| 396 |
AT_CLEANUP |
| 397 |
|
| 398 |
AT_SETUP([Read cell array with uint32 arrays]) |
| 399 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 400 |
AT_CHECK([cp $srcdir/results/read-var58.out expout |
| 401 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var58],[0],[expout],[]) |
| 402 |
AT_CLEANUP |
| 403 |
|
| 404 |
AT_SETUP([Read cell array with int16 arrays]) |
| 405 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 406 |
AT_CHECK([cp $srcdir/results/read-var59.out expout |
| 407 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var59],[0],[expout],[]) |
| 408 |
AT_CLEANUP |
| 409 |
|
| 410 |
AT_SETUP([Read cell array with uint16 arrays]) |
| 411 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 412 |
AT_CHECK([cp $srcdir/results/read-var60.out expout |
| 413 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var60],[0],[expout],[]) |
| 414 |
AT_CLEANUP |
| 415 |
|
| 416 |
AT_SETUP([Read cell array with int8 arrays]) |
| 417 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 418 |
AT_CHECK([cp $srcdir/results/read-var61.out expout |
| 419 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var61],[0],[expout],[]) |
| 420 |
AT_CLEANUP |
| 421 |
|
| 422 |
AT_SETUP([Read cell array with uint8 arrays]) |
| 423 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 424 |
AT_CHECK([cp $srcdir/results/read-var62.out expout |
| 425 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var62],[0],[expout],[]) |
| 426 |
AT_CLEANUP |
| 427 |
|
| 428 |
AT_SETUP([Read cell array with logical arrays]) |
| 429 |
AT_KEYWORDS([logical]) |
| 430 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 431 |
AT_CHECK([cp $srcdir/results/read-var92.out expout |
| 432 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var92],[0],[expout],[]) |
| 433 |
AT_CLEANUP |
| 434 |
|
| 435 |
AT_SETUP([Read cell array with sparse double arrays]) |
| 436 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 437 |
AT_CHECK([cp $srcdir/results/read-var63.out expout |
| 438 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var63],[0],[expout],[]) |
| 439 |
AT_CLEANUP |
| 440 |
|
| 441 |
AT_SETUP([Read cell array with sparse complex double arrays]) |
| 442 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 443 |
AT_CHECK([cp $srcdir/results/read-var64.out expout |
| 444 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var64],[0],[expout],[]) |
| 445 |
AT_CLEANUP |
| 446 |
|
| 447 |
AT_SETUP([Read cell array with character arrays]) |
| 448 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 449 |
AT_CHECK([cp $srcdir/results/read-var65.out expout |
| 450 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var65],[0],[expout],[]) |
| 451 |
AT_CLEANUP |
| 452 |
|
| 453 |
AT_SETUP([Read cell array with empty structs]) |
| 454 |
AT_KEYWORDS([empty]) |
| 455 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 456 |
AT_CHECK([cp $srcdir/results/read-var66.out expout |
| 457 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var66],[0],[expout],[]) |
| 458 |
AT_CLEANUP |
| 459 |
|
| 460 |
AT_SETUP([Read cell array with structs (numeric fields)]) |
| 461 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 462 |
AT_CHECK([cp $srcdir/results/read-var67.out expout |
| 463 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var67],[0],[expout],[]) |
| 464 |
AT_CLEANUP |
| 465 |
|
| 466 |
AT_SETUP([Read cell array with structs (sparse fields)]) |
| 467 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 468 |
AT_CHECK([cp $srcdir/results/read-var68.out expout |
| 469 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var68],[0],[expout],[]) |
| 470 |
AT_CLEANUP |
| 471 |
|
| 472 |
AT_SETUP([Read cell array with structs (character fields)]) |
| 473 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 474 |
AT_CHECK([cp $srcdir/results/read-var69-73.out expout |
| 475 |
$builddir/test_mat readvar $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat var69],[0],[expout],[]) |
| 476 |
AT_CLEANUP |
| 477 |
|
| 478 |
AT_SETUP([Read directory]) |
| 479 |
AT_KEYWORDS([directory]) |
| 480 |
AT_SKIP_IF([test $MAT73 -ne 1]) |
| 481 |
AT_CHECK([cp $srcdir/results/dir_le.out expout |
| 482 |
$builddir/test_mat directory $srcdir/datasets/matio_test_cases_compressed_hdf_le.mat],[0],[expout],[]) |
| 483 |
AT_CLEANUP |