2016-05-25 08:52:24 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
|
|
. ../test_common.sh
|
2016-05-25 08:52:24 +08:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2021-04-17 06:12:53 +08:00
|
|
|
ECODE=0
|
|
|
|
|
2016-05-25 08:52:24 +08:00
|
|
|
echo "*** Testing phony dimension creation on pure h5 file"
|
|
|
|
rm -f ./tmp
|
2017-03-09 08:01:10 +08:00
|
|
|
if $NCDUMP -L0 -K ${srcdir}/tdset.h5 >./tmp ; then
|
2016-05-25 08:52:24 +08:00
|
|
|
echo "*** Pass: phony dimension creation"
|
|
|
|
else
|
|
|
|
echo "*** Fail: phony dimension creation"
|
|
|
|
ECODE=1
|
|
|
|
fi
|
|
|
|
|
2021-04-17 06:12:53 +08:00
|
|
|
echo "*** Testing char(*) type printout error in ncdump"
|
|
|
|
rm -f tst_charvlenbug.nc ./tmp
|
|
|
|
${execdir}/tst_charvlenbug
|
|
|
|
if $NCDUMP ./tst_charvlenbug.nc 2>1 >./tmp ; then
|
|
|
|
echo "*** Pass: char(*) ncdump printout"
|
|
|
|
else
|
|
|
|
echo "*** Fail: char(*) ncdump printout"
|
|
|
|
ECODE=1
|
|
|
|
fi
|
|
|
|
|
2016-05-25 08:52:24 +08:00
|
|
|
rm -f tmp
|
|
|
|
|
|
|
|
exit $ECODE
|
|
|
|
|
|
|
|
|