mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Giving test output netcdf files unique names.
This commit is contained in:
parent
8ac9c3a524
commit
2151dbbd44
@ -114,7 +114,9 @@ endif
|
||||
|
||||
endif BUILD_TESTSETS
|
||||
|
||||
CLEANFILES = test0.nc test1.cdl test1.nc test2.cdl ctest1.cdl \
|
||||
CLEANFILES = test0.nc test1_ncdump.cdl test1_ncdump.nc test2_ncdump.cdl ctest1.cdl \
|
||||
test1_cdf5.nc test1_cdf5.cdl test0_cdf5.nc test0_cdf5.cdl test2_cdf5.nc test2_cdf5.cdl \
|
||||
test0_offset.nc test0_offset.cdl test1_offset.nc test1_offset.cdl test2_offset.nc test2_offset.cdl \
|
||||
ctest0.nc ctest0_64.nc c1.cdl c1_4.cdl ctest1_64.cdl c0.nc c0_4.nc small.nc \
|
||||
small2.nc c0tmp.nc c1.ncml utf8.cdl utf8_64.cdl utf8.nc utf8_64.nc \
|
||||
tmp.cdl tst_vlen_data.nc tst_utf8.nc tst_special_atts.nc \
|
||||
@ -142,7 +144,7 @@ ref_tst_compounds.nc ref_tst_dims.nc ref_tst_interops4.nc \
|
||||
ref_tst_xplatform2_1.nc ref_tst_xplatform2_2.nc nccopy3_subset_out.nc
|
||||
|
||||
# These files all have to be included with the distribution.
|
||||
EXTRA_DIST = run_tests.sh tst_64bit.sh tst_output.sh test0.cdl \
|
||||
EXTRA_DIST = run_tests.sh tst_64bit.sh tst_output.sh test0_ncdump.cdl \
|
||||
ref_ctest1_nc4.cdl ref_ctest1_nc4c.cdl ref_tst_solar_1.cdl \
|
||||
ref_tst_solar_2.cdl tst_netcdf4.sh tst_netcdf4_4.sh ref_tst_small.cdl \
|
||||
tst_lengths.sh tst_ncml.cdl ref1.ncml ref_tst_group_data.cdl \
|
||||
|
@ -15,16 +15,16 @@ echo "*** creating tst_small.cdl from tst_small.nc..."
|
||||
${NCDUMP} tst_small.nc > tst_small.cdl
|
||||
diff -b -w tst_small.cdl $srcdir/ref_tst_small.cdl
|
||||
|
||||
echo "*** creating test0.nc from test0.cdl..."
|
||||
${NCGEN} -b $srcdir/test0.cdl
|
||||
echo "*** creating test1.cdl from test0.nc..."
|
||||
${NCDUMP} -n test1 test0.nc > test1.cdl
|
||||
echo "*** creating test1.nc from test1.cdl..."
|
||||
${NCGEN} -b test1.cdl
|
||||
echo "*** creating test2.cdl from test1.nc..."
|
||||
${NCDUMP} test1.nc > test2.cdl
|
||||
echo "*** checking that test1.cdl and test2.cdl are the same..."
|
||||
diff -b -w test1.cdl test2.cdl
|
||||
echo "*** creating test0_ncdump.nc from test0.cdl..."
|
||||
${NCGEN} -o tst0_ncdump.nc -b $srcdir/test0.cdl
|
||||
echo "*** creating test1_ncdump.cdl from test0_ncdump.nc..."
|
||||
${NCDUMP} -n test1 test0_ncdump.nc > test1_ncdump.cdl
|
||||
echo "*** creating test1_ncdump.nc from test1_ncdump.cdl..."
|
||||
${NCGEN} -b test1_ncdump.cdl
|
||||
echo "*** creating test2_ncdump.cdl from test1_ncdump.nc..."
|
||||
${NCDUMP} test1_ncdump.nc > test2_ncdump.cdl
|
||||
echo "*** checking that test1_ncdump.cdl and test2_ncdump.cdl are the same..."
|
||||
diff -b -w test1_ncdump.cdl test2_ncdump.cdl
|
||||
|
||||
echo "*** All tests of ncgen and ncdump using test0.cdl passed!"
|
||||
exit 0
|
||||
|
@ -19,31 +19,31 @@ fi
|
||||
echo ""
|
||||
echo "*** Testing ncgen and ncdump with 64-bit offset format."
|
||||
set -e
|
||||
echo "*** creating test0.nc from test0.cdl..."
|
||||
${NCGEN} -b -k2 $srcdir/test0.cdl
|
||||
echo "*** creating test1.cdl from test0.nc..."
|
||||
${NCDUMP} -n test1 test0.nc > test1.cdl
|
||||
echo "*** creating test1.nc from test1.cdl..."
|
||||
${NCGEN} -b -k2 test1.cdl
|
||||
echo "*** creating test2.cdl from test1.nc..."
|
||||
${NCDUMP} test1.nc > test2.cdl
|
||||
cmp test1.cdl test2.cdl
|
||||
echo "*** creating test0_offset.nc from test0.cdl..."
|
||||
${NCGEN} -b -k2 -o test0_offset.nc $srcdir/test0.cdl
|
||||
echo "*** creating test1_offset.cdl from test0_offset.nc..."
|
||||
${NCDUMP} -n test1 test0_offset.nc > test1_offset.cdl
|
||||
echo "*** creating test1_offset.nc from test1_offset.cdl..."
|
||||
${NCGEN} -b -k2 -o test1_offset.nc test1.cdl
|
||||
echo "*** creating test2_offset.cdl from test1.nc..."
|
||||
${NCDUMP} test1_offset.nc > test2_offset.cdl
|
||||
cmp test1_offset.cdl test2_offset.cdl
|
||||
echo "*** All ncgen and ncdump with 64-bit offset format tests passed!"
|
||||
|
||||
|
||||
if [ "x$CDF5" == "x1" ]; then
|
||||
if test "x$CDF5" = x1 ; then
|
||||
echo ""
|
||||
echo "*** Testing ncgen and ncdump with CDF5 format."
|
||||
set -e
|
||||
echo "*** creating test0.nc from test0.cdl..."
|
||||
${NCGEN} -b -k5 $srcdir/test0.cdl
|
||||
echo "*** creating test1.cdl from test0.nc..."
|
||||
${NCDUMP} -n test1 test0.nc > test1.cdl
|
||||
echo "*** creating test1.nc from test1.cdl..."
|
||||
${NCGEN} -b -k5 test1.cdl
|
||||
echo "*** creating test2.cdl from test1.nc..."
|
||||
${NCDUMP} test1.nc > test2.cdl
|
||||
cmp test1.cdl test2.cdl
|
||||
echo "*** creating test0_cdf5.nc from test0.cdl..."
|
||||
${NCGEN} -b -k5 -O test0_cdf5.nc $srcdir/test0.cdl
|
||||
echo "*** creating test1_cdf5.cdl from test0_cdf5.nc..."
|
||||
${NCDUMP} -n test1 test0_cdf5.nc > test1_cdf5.cdl
|
||||
echo "*** creating test1_cdf5.nc from test1_cdf5.cdl..."
|
||||
${NCGEN} -b -k5 -o test1_cdf5.nc test1.cdl
|
||||
echo "*** creating test2_cdf5.cdl from test1_cdf5.nc..."
|
||||
${NCDUMP} test1_cdf5.nc > test2_cdf5.cdl
|
||||
cmp test1_cdf5.cdl test2_cdf5.cdl
|
||||
echo "*** All ncgen and ncdump with CDF5 format tests passed!"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user