mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
38 lines
616 B
Bash
Executable File
38 lines
616 B
Bash
Executable File
#!/bin/sh
|
|
# Run test_chunk_hdf4 passing ${srcdir}
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
. ../test_common.sh
|
|
|
|
CHUNKED=chunked.hdf4
|
|
CONTIG=contiguous.hdf4
|
|
|
|
echo ""
|
|
echo "*** Testing hdf4 chunking..."
|
|
|
|
if test "x${srcdir}" = "x" ; then
|
|
srcdir="."
|
|
fi
|
|
|
|
# Move the data sets into place
|
|
ISDISTCHECK=0
|
|
if test -f ./${CHUNKED} ; then
|
|
ISDISTCHECK=0
|
|
else
|
|
ISDISTCHECK=1
|
|
cp ${srcdir}/${CHUNKED} .
|
|
cp ${srcdir}/${CONTIG} .
|
|
fi
|
|
|
|
if ./tst_chunk_hdf4 ; then
|
|
echo "***SUCCESS!! tst_chunk_hdf4"
|
|
else
|
|
echo "***FAIL: tst_chunk_hdf4"
|
|
fi
|
|
|
|
if test "x${ISDISTCHECK}" = "x1" ; then
|
|
echo rm -f ./${CHUNKED} ./${CONTIG}
|
|
fi
|
|
|
|
exit 0
|