netcdf-c/nc_test4/tst_misc.sh
Dennis Heimbigner 835511eaeb HDF5 is generating unnecessary error messages when netcdf4 logging is enabled
re: github netcdf-c issue #271

This occurs for several reasons, including:
1. using H5Aopen_name instead of H5Aexists to test if attribute exists.
2. using H5Eset_auto instead of H5Eset_auto2.
There are probably others that will have to be extinguished as encountered.
p.s Hope I did not overdo this and kill too much.
2016-05-27 10:08:01 -06:00

27 lines
446 B
Bash
Executable File

#!/bin/sh
if test "x$builddir" = "x"; then builddir=`pwd`; fi
if test "x$srcdir" = "x"; then srcdir=`dirname $0`; fi
# Make buildir absolute
cd $builddir
builddir=`pwd`
set -e
echo "*** Testing phony dimension creation on pure h5 file"
rm -f ./tmp
if ../ncdump/ncdump -L0 -K ${srcdir}/tdset.h5 >./tmp ; then
echo "*** Pass: phony dimension creation"
ECODE=0
else
echo "*** Fail: phony dimension creation"
ECODE=1
fi
rm -f tmp
exit $ECODE