mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
4de1b58df2
There was a problem with the distcheck testing since the test input files are in ${src_dir} and the test is in ${build_dir}. So modify run_chunk_hdf4 to copy as necessary.
35 lines
559 B
Bash
Executable File
35 lines
559 B
Bash
Executable File
#!/bin/sh
|
|
# Run test_chunk_hdf4 passing ${src_dir}
|
|
set -x
|
|
CHUNKED=chunked.hdf4
|
|
CONTIG=contiguous.hdf4
|
|
|
|
echo ""
|
|
echo "*** Testing hdf4 chunking..."
|
|
|
|
if test "x${src_dir}" = "x" ; then
|
|
src_dir="."
|
|
fi
|
|
|
|
# Move the data sets into place
|
|
ISDISTCHECK=0
|
|
if test -f ./${CHUNKED} ; then
|
|
ISDISTCHECK=0
|
|
else
|
|
ISDISTCHECK=1
|
|
cp ${src_dir}/${CHUNKED} .
|
|
cp ${src_dir}/${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
|