mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-21 08:39:46 +08:00
2b45c7ec84
re: https://github.com/Unidata/netcdf-c/issues/2159 There was error in libhdf5 that only allowed reading a single value HDF5 fixed string. Fix to allow reading an array of such strings. Also make sure it still works for scalars and for attributes. Add a testcase: nc_test4/tst_fixedstring.sh.
16 lines
447 B
Bash
Executable File
16 lines
447 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
. ../test_common.sh
|
|
|
|
set -e
|
|
|
|
# Note, the test file for this is ref_fixedstring.h5
|
|
# But is is generated by the (otherwise unused) program
|
|
# ../h5_test/tst_h_fixedstrings.c.
|
|
|
|
echo "*** Test reading a file with HDF5 fixed length strings"
|
|
rm -f ./tmp_fixedstring.cdl
|
|
$NCDUMP ${srcdir}/ref_fixedstring.h5 > ./tmp_fixedstring.cdl
|
|
diff -b -w ${srcdir}/ref_fixedstring.cdl ./tmp_fixedstring.cdl
|