2016-01-06 12:26:25 +08:00
|
|
|
#!/bin/sh
|
2016-01-09 03:55:11 +08:00
|
|
|
|
2022-01-25 06:22:24 +08:00
|
|
|
set -e
|
2017-05-31 04:29:21 +08:00
|
|
|
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
2017-03-09 08:01:10 +08:00
|
|
|
. ../test_common.sh
|
2016-01-09 03:55:11 +08:00
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
echo "*** Test Maximum dimension sizes X mode"
|
2016-01-09 03:55:11 +08:00
|
|
|
|
2016-01-06 12:26:25 +08:00
|
|
|
# This shell script tests max dimension sizes X mode
|
|
|
|
|
|
|
|
RETURN=0
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
rm -f tst_dimsize_classic.nc tst_dimsize_64offset.nc tst_dimsize_64data.nc
|
|
|
|
|
|
|
|
echo "*** Generate: tst_dimsize_classic.nc tst_dimsize_64offset.nc tst_dimsize_64data.nc"
|
2017-03-09 08:01:10 +08:00
|
|
|
${execdir}/tst_dimsizes
|
2016-01-06 12:26:25 +08:00
|
|
|
|
|
|
|
echo "*** Verify that ncdump can read dimsizes"
|
|
|
|
|
2017-11-17 23:22:49 +08:00
|
|
|
rm -fr ./tmp_tst_dimsizes
|
|
|
|
if ${NCDUMP} -h tst_dimsize_classic.nc > ./tmp_tst_dimsizes ; then
|
2016-01-06 12:26:25 +08:00
|
|
|
echo "*** PASS: ncdump tst_dimsize_classic.nc"
|
|
|
|
else
|
|
|
|
echo "*** FAIL: ncdump tst_dimsize_classic.nc"
|
|
|
|
RETURN=1
|
|
|
|
fi
|
|
|
|
|
2017-11-17 23:22:49 +08:00
|
|
|
rm -fr ./tmp_tst_dimsizes
|
|
|
|
if ${NCDUMP} -h tst_dimsize_64offset.nc > ./tmp_tst_dimsizes ; then
|
2016-01-06 12:26:25 +08:00
|
|
|
echo "*** PASS: ncdump tst_dimsize_64offset.nc"
|
|
|
|
else
|
|
|
|
echo "*** FAIL: ncdump tst_dimsize_64offset.nc"
|
|
|
|
RETURN=1
|
|
|
|
fi
|
|
|
|
|
2016-01-09 03:55:11 +08:00
|
|
|
if test -f tst_dimsize_64data.nc ; then
|
2017-11-17 23:22:49 +08:00
|
|
|
rm -fr ./tmp_tst_dimsizes
|
|
|
|
if ${NCDUMP} -h tst_dimsize_64data.nc > ./tmp_tst_dimsizes ; then
|
2016-01-09 03:55:11 +08:00
|
|
|
echo "*** PASS: ncdump tst_dimsize_64data.nc"
|
|
|
|
else
|
|
|
|
echo "*** FAIL: ncdump tst_dimsize_64data.nc"
|
|
|
|
RETURN=1
|
|
|
|
fi
|
2016-01-06 12:26:25 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Cleanup
|
2017-11-17 23:22:49 +08:00
|
|
|
rm -f tmp_tst_dimsizes tst_dimsize_classic.nc tst_dimsize_64offset.nc tst_dimsize_64data.nc
|
2016-01-06 12:26:25 +08:00
|
|
|
|
|
|
|
exit $RETURN
|