mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-03-25 17:40:27 +08:00
Added -b flag to diff in shell scripts, to ignore whitespace, newlines, carriage returns.
This commit is contained in:
parent
9ec37b647f
commit
9fc359f29b
@ -224,7 +224,7 @@ for x in ${TESTSET} ; do
|
||||
cd ..
|
||||
if test 1 = 1; then
|
||||
# compare with expected
|
||||
if diff -w ${expected}/${x}.dmp results/${x}.dmp
|
||||
if diff -b -w ${expected}/${x}.dmp results/${x}.dmp
|
||||
then ok=1; else ok=0; fi
|
||||
if test "$ok" = "1" ; then
|
||||
echo "*** PASS: ${x}"
|
||||
|
@ -9,8 +9,8 @@ echo "*** checking ref_nc_test_netcdf4_4_0.nc..."
|
||||
# Why drop the first two lines?
|
||||
#tail -n +2 < $srcdir/ref_nc_test_netcdf4.cdl > tmp.cdl
|
||||
#tail -n +2 < tst_nc_test_netcdf4_4_0.cdl > tmp_4_0.cdl
|
||||
#diff -w tmp.cdl tmp_4_0.cdl
|
||||
diff -w $srcdir/ref_nc_test_netcdf4.cdl tst_nc_test_netcdf4_4_0.cdl
|
||||
#diff -b -w tmp.cdl tmp_4_0.cdl
|
||||
diff -b -w $srcdir/ref_nc_test_netcdf4.cdl tst_nc_test_netcdf4_4_0.cdl
|
||||
|
||||
# echo "*** Testing that old versions can read data produced by this version of netCDF."
|
||||
# echo "*** checking version 4.0..."
|
||||
@ -18,14 +18,14 @@ diff -w $srcdir/ref_nc_test_netcdf4.cdl tst_nc_test_netcdf4_4_0.cdl
|
||||
# /machine/local_4.0/bin/ncdump tst_nc_test_netcdf4.nc > tst_nc_test_netcdf4.cdl
|
||||
# tail -n +2 <$srcdir/ref_nc_test_netcdf4.cdl > tmp.cdl
|
||||
# tail -n +2 <tst_nc_test_netcdf4.cdl > tmp_4_0.cdl
|
||||
# diff -w tmp.cdl tmp_4_0.cdl
|
||||
# diff -b -w tmp.cdl tmp_4_0.cdl
|
||||
|
||||
# echo "*** checking version 4.1.1..."
|
||||
# ../ncgen/ncgen -b -o tst_nc_test_netcdf4 -k 4 $srcdir/ref_nc_test_netcdf4.cdl
|
||||
# /machine/local_4.1.1/bin/ncdump tst_nc_test_netcdf4.nc > tst_nc_test_netcdf4.cdl
|
||||
# tail -n +2 <$srcdir/ref_nc_test_netcdf4.cdl > tmp.cdl
|
||||
# tail -n +2 <tst_nc_test_netcdf4.cdl > tmp_4_0.cdl
|
||||
# diff -w tmp.cdl tmp_4_0.cdl
|
||||
# diff -b -w tmp.cdl tmp_4_0.cdl
|
||||
|
||||
echo "*** All backward compatibility tests passed!"
|
||||
exit 0
|
||||
|
@ -9,7 +9,7 @@ echo "*** creating tst_small.nc from ref_tst_small.cdl..."
|
||||
../ncgen/ncgen -b -o tst_small.nc $srcdir/ref_tst_small.cdl
|
||||
echo "*** creating tst_small.cdl from tst_small.nc..."
|
||||
./ncdump tst_small.nc > tst_small.cdl
|
||||
diff -w tst_small.cdl $srcdir/ref_tst_small.cdl
|
||||
diff -b -w tst_small.cdl $srcdir/ref_tst_small.cdl
|
||||
|
||||
echo "*** creating test0.nc from test0.cdl..."
|
||||
../ncgen/ncgen -b $srcdir/test0.cdl
|
||||
@ -20,7 +20,7 @@ echo "*** creating test1.nc from 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 -w test1.cdl test2.cdl
|
||||
diff -b -w test1.cdl test2.cdl
|
||||
|
||||
echo "*** All tests of ncgen and ncdump using test0.cdl passed!"
|
||||
exit 0
|
||||
|
@ -11,21 +11,21 @@ echo "*** creating classic offset file with utf8 characters..."
|
||||
../ncgen/ncgen -b -o utf8.nc ${srcdir}/ref_tst_utf8.cdl
|
||||
echo "*** dump and compare utf8 output..."
|
||||
./ncdump utf8.nc > utf8.cdl
|
||||
diff -w utf8.cdl ${srcdir}/ref_tst_utf8.cdl
|
||||
diff -b -w utf8.cdl ${srcdir}/ref_tst_utf8.cdl
|
||||
|
||||
rm -f utf8.nc utf8.cdl
|
||||
echo "*** creating 64-bit offset file with utf8 characters..."
|
||||
../ncgen/ncgen -k 64-bit-offset -b -o utf8.nc ${srcdir}/ref_tst_utf8.cdl
|
||||
echo "*** (64 bit) dump and compare utf8 output..."
|
||||
./ncdump utf8.nc > utf8.cdl
|
||||
diff -w utf8.cdl ${srcdir}/ref_tst_utf8.cdl
|
||||
diff -b -w utf8.cdl ${srcdir}/ref_tst_utf8.cdl
|
||||
|
||||
echo "*** dumping tst_utf8.nc to tst_utf8.cdl..."
|
||||
rm -f tst8.cdl
|
||||
sed -e 's/^netcdf tst_unicode/netcdf tst_utf8/' <${srcdir}/ref_tst_unicode.cdl >tst8.cdl
|
||||
./ncdump tst_utf8.nc > tst_utf8.cdl
|
||||
echo "*** comparing tst_utf8.cdl with tst8.cdl..."
|
||||
diff -w tst_utf8.cdl tst8.cdl
|
||||
diff -b -w tst_utf8.cdl tst8.cdl
|
||||
rm -f tst8.cdl result
|
||||
echo "*** All utf8 tests of ncgen and ncdump passed!"
|
||||
exit 0
|
||||
|
@ -10,7 +10,7 @@ echo "*** creating netcdf file tst_calendars.nc from tst_calendars.cdl..."
|
||||
echo "*** creating tst_times.cdl from tst_calendars.nc with ncdump -t ..."
|
||||
./ncdump -n tst_times -t tst_calendars.nc > tst_times.cdl
|
||||
echo "*** comparing tst_times.cdl with ref_times.cdl..."
|
||||
diff tst_times.cdl $srcdir/ref_times.cdl
|
||||
diff -b tst_times.cdl $srcdir/ref_times.cdl
|
||||
|
||||
echo
|
||||
echo "*** All ncdump test output for -t option with CF calendar atts passed!"
|
||||
|
@ -11,7 +11,7 @@ rm -f tst_charfill.nc tmp_tst_charfill.cdl
|
||||
echo "*** dumping tst_charfill.nc to tmp_tst_charfill.cdl..."
|
||||
./ncdump tst_charfill.nc > tmp_tst_charfill.cdl
|
||||
echo "*** comparing tmp_tst_charfill.cdl with ref_tst_charfill.cdl..."
|
||||
diff tmp_tst_charfill.cdl $srcdir/ref_tst_charfill.cdl
|
||||
diff -b tmp_tst_charfill.cdl $srcdir/ref_tst_charfill.cdl
|
||||
|
||||
echo
|
||||
echo "*** All char _Fillvalue bug test for netCDF-4 format passed!"
|
||||
|
@ -9,7 +9,7 @@ echo "*** Running ncdump bug test."
|
||||
echo "*** dumping tst_fillbug.nc to tst_fillbug.cdl..."
|
||||
./ncdump tst_fillbug.nc > tst_fillbug.cdl
|
||||
echo "*** comparing tst_fillbug.cdl with ref_tst_fillbug.cdl..."
|
||||
diff tst_fillbug.cdl $srcdir/ref_tst_fillbug.cdl
|
||||
diff -b tst_fillbug.cdl $srcdir/ref_tst_fillbug.cdl
|
||||
|
||||
echo
|
||||
echo "*** All ncdump bug test output for netCDF-4 format passed!"
|
||||
|
@ -11,7 +11,7 @@ echo "*** creating netcdf file tst_grp_spec.nc from ref_tst_grp_spec0.cdl..."
|
||||
echo "*** creating tmp_subset.cdl from tmp_all.nc with ncdump -g ..."
|
||||
./ncdump -g g1,g4 -n tmp_subset tmp_all.nc > tmp_subset.cdl
|
||||
echo "*** comparing tmp_subset.cdl with ref_tst_grp_spec.cdl..."
|
||||
diff tmp_subset.cdl $srcdir/ref_tst_grp_spec.cdl
|
||||
diff -b tmp_subset.cdl $srcdir/ref_tst_grp_spec.cdl
|
||||
|
||||
echo
|
||||
echo "*** All ncdump test output for -g option passed!"
|
||||
|
@ -48,7 +48,7 @@ mv iter.dmp iter.tmp
|
||||
sed -e 's/\([0-9][,]\) /\1@/g' <iter.tmp |tr '@' '\n' |sed -e '/^$/d' >./iter.dmp
|
||||
|
||||
echo "*** comparing iter.dmp with iter.cdl..."
|
||||
diff -w ./iter.dmp ./iter.cdl
|
||||
diff -b -w ./iter.dmp ./iter.cdl
|
||||
|
||||
# cleanup
|
||||
rm -f $CLEANUP
|
||||
|
@ -14,7 +14,7 @@ for i in $TESTFILES ; do
|
||||
./ncdump -n copy_of_$i $i.nc > tmp.cdl
|
||||
./ncdump copy_of_$i.nc > copy_of_$i.cdl
|
||||
echo "*** compare " with copy_of_$i.cdl
|
||||
diff copy_of_$i.cdl tmp.cdl
|
||||
diff -b copy_of_$i.cdl tmp.cdl
|
||||
rm copy_of_$i.nc copy_of_$i.cdl tmp.cdl
|
||||
done
|
||||
echo "*** Test nccopy -u"
|
||||
@ -25,7 +25,7 @@ echo "*** creating tst_brecs.nc from tst_brecs.cdl..."
|
||||
./ncdump -n copy_of_tst_brecs tst_brecs.nc | sed '/ = UNLIMITED ;/s/\(.*\) = UNLIMITED ; \/\/ (\(.*\) currently)/\1 = \2 ;/' > tmp.cdl
|
||||
./ncdump copy_of_tst_brecs.nc > copy_of_tst_brecs.cdl
|
||||
echo "*** compare result of nccopy -u with expected result ..."
|
||||
diff copy_of_tst_brecs.cdl tmp.cdl
|
||||
diff -b copy_of_tst_brecs.cdl tmp.cdl
|
||||
rm copy_of_tst_brecs.cdl tmp.cdl tst_brecs.nc copy_of_tst_brecs.nc
|
||||
|
||||
echo
|
||||
|
@ -19,7 +19,7 @@ for i in $TESTFILES ; do
|
||||
./ncdump -n copy_of_$i $i.nc > tmp.cdl
|
||||
./ncdump copy_of_$i.nc > copy_of_$i.cdl
|
||||
echo "*** compare " with copy_of_$i.cdl
|
||||
diff copy_of_$i.cdl tmp.cdl
|
||||
diff -b copy_of_$i.cdl tmp.cdl
|
||||
rm copy_of_$i.nc copy_of_$i.cdl tmp.cdl
|
||||
done
|
||||
echo "*** Create deflatable files for testing ..."
|
||||
@ -53,7 +53,7 @@ for i in $TESTFILES ; do
|
||||
./ncdump -n copy_of_$i $i.nc > tmp.cdl
|
||||
./ncdump copy_of_$i.nc > copy_of_$i.cdl
|
||||
echo "*** compare " with copy_of_$i.cdl
|
||||
diff copy_of_$i.cdl tmp.cdl
|
||||
diff -b copy_of_$i.cdl tmp.cdl
|
||||
rm copy_of_$i.nc copy_of_$i.cdl tmp.cdl
|
||||
done
|
||||
echo "*** Create chunkable file for testing ..."
|
||||
@ -63,10 +63,10 @@ echo "*** Test that nccopy -c can chunk and unchunk files"
|
||||
./ncdump tmp.nc > tmp.cdl
|
||||
./nccopy -c dim0/,dim1/1,dim2/,dim3/1,dim4/,dim5/1,dim6/ tst_chunking.nc tmp-chunked.nc
|
||||
./ncdump -n tmp tmp-chunked.nc > tmp-chunked.cdl
|
||||
diff tmp.cdl tmp-chunked.cdl
|
||||
diff -b tmp.cdl tmp-chunked.cdl
|
||||
./nccopy -c dim0/,dim1/,dim2/,dim3/,dim4/,dim5/,dim6/ tmp-chunked.nc tmp-unchunked.nc
|
||||
./ncdump -n tmp tmp-unchunked.nc > tmp-unchunked.cdl
|
||||
diff tmp.cdl tmp-unchunked.cdl
|
||||
diff -b tmp.cdl tmp-unchunked.cdl
|
||||
# echo "*** Test that nccopy compression with chunking can improve compression"
|
||||
rm tst_chunking.nc tmp.nc tmp.cdl tmp-chunked.nc tmp-chunked.cdl tmp-unchunked.nc tmp-unchunked.cdl
|
||||
|
||||
|
@ -19,17 +19,17 @@ export srcdir
|
||||
export builddir
|
||||
|
||||
KFLAG=1 ; export KFLAG
|
||||
echo "Performing diff tests: k=1"
|
||||
echo "Performing diff -b tests: k=1"
|
||||
sh ${srcdir}/tst_ncgen4_diff.sh
|
||||
echo "Performing cycle tests: k=1"
|
||||
sh ${srcdir}/tst_ncgen4_cycle.sh
|
||||
KFLAG=3 ; export KFLAG
|
||||
echo "Performing diff tests: k=3"
|
||||
echo "Performing diff -b tests: k=3"
|
||||
sh ${srcdir}/tst_ncgen4_diff.sh
|
||||
echo "Performing cycle tests: k=3"
|
||||
sh ${srcdir}/tst_ncgen4_cycle.sh
|
||||
KFLAG=4 ; export KFLAG
|
||||
echo "Performing diff tests: k=4"
|
||||
echo "Performing diff -b tests: k=4"
|
||||
sh ${srcdir}/tst_ncgen4_diff.sh
|
||||
echo "Performing cycle tests: k=4"
|
||||
sh ${srcdir}/tst_ncgen4_cycle.sh
|
||||
|
@ -42,7 +42,7 @@ for x in ${TESTSET} ; do
|
||||
# step 4: dump .nc file again
|
||||
${builddir}/../ncdump/ncdump ${headflag} ${specflag} ${x}.nc > ${x}.dmp2
|
||||
# compare the two ncdump outputs
|
||||
if diff -w ${x}.dmp ${x}.dmp2 ; then ok=1; else ok=0; fi
|
||||
if diff -b -w ${x}.dmp ${x}.dmp2 ; then ok=1; else ok=0; fi
|
||||
if test "x$ok" = "x1" ; then
|
||||
test $verbose = 1 && echo "*** SUCCEED: ${x}"
|
||||
passcount=`expr $passcount + 1`
|
||||
|
@ -36,9 +36,9 @@ for x in ${TESTSET} ; do
|
||||
${builddir}/../ncdump/ncdump ${headflag} ${specflag} ${x}.nc > ${x}.dmp
|
||||
# compare the expected (silently if XFAIL)
|
||||
if test "x$isxfail" = "x1" -a "x$SHOWXFAILS" = "x" ; then
|
||||
if diff -bw ${expected}/${x}.dmp ${x}.dmp >/dev/null 2>&1; then ok=1; else ok=0; fi
|
||||
if diff -b -bw ${expected}/${x}.dmp ${x}.dmp >/dev/null 2>&1; then ok=1; else ok=0; fi
|
||||
else
|
||||
if diff -w ${expected}/${x}.dmp ${x}.dmp ; then ok=1; else ok=0; fi
|
||||
if diff -b -w ${expected}/${x}.dmp ${x}.dmp ; then ok=1; else ok=0; fi
|
||||
fi
|
||||
if test "x$ok" = "x1" ; then
|
||||
test $verbose = 1 && echo "*** SUCCEED: ${x}"
|
||||
|
@ -10,7 +10,7 @@ echo "*** creating netcdf-4 file c0.nc from c0.cdl..."
|
||||
echo "*** creating c1.cdl from c0.nc..."
|
||||
./ncdump -n c1 c0.nc > c1.cdl
|
||||
echo "*** comparing c1.cdl with ref_ctest1_nc4.cdl..."
|
||||
diff c1.cdl $srcdir/ref_ctest1_nc4.cdl
|
||||
diff -b c1.cdl $srcdir/ref_ctest1_nc4.cdl
|
||||
|
||||
echo
|
||||
echo "*** Testing ncgen and ncdump test output for netCDF-4 classic format."
|
||||
@ -19,64 +19,64 @@ echo "*** creating netcdf-4 classic file c0.nc from c0.cdl..."
|
||||
echo "*** creating c1.cdl from c0.nc..."
|
||||
./ncdump -n c1 c0.nc > c1.cdl
|
||||
echo "*** comparing c1.cdl with ref_ctest1_nc4c.cdl..."
|
||||
diff c1.cdl $srcdir/ref_ctest1_nc4c.cdl
|
||||
diff -b c1.cdl $srcdir/ref_ctest1_nc4c.cdl
|
||||
|
||||
echo
|
||||
echo "*** Testing ncdump output for netCDF-4 features."
|
||||
echo "*** dumping tst_solar_1.nc to tst_solar_1.cdl..."
|
||||
./ncdump tst_solar_1.nc > tst_solar_1.cdl
|
||||
echo "*** comparing tst_solar_1.cdl with ref_tst_solar_1.cdl..."
|
||||
diff tst_solar_1.cdl $srcdir/ref_tst_solar_1.cdl
|
||||
diff -b tst_solar_1.cdl $srcdir/ref_tst_solar_1.cdl
|
||||
echo "*** dumping tst_solar_2.nc to tst_solar_2.cdl..."
|
||||
./ncdump tst_solar_2.nc > tst_solar_2.cdl
|
||||
echo "*** comparing tst_solar_2.cdl with ref_tst_solar_2.cdl..."
|
||||
diff tst_solar_2.cdl $srcdir/ref_tst_solar_2.cdl
|
||||
diff -b tst_solar_2.cdl $srcdir/ref_tst_solar_2.cdl
|
||||
echo "*** dumping tst_group_data.nc to tst_group_data.cdl..."
|
||||
./ncdump tst_group_data.nc > tst_group_data.cdl
|
||||
echo "*** comparing tst_group_data.cdl with ref_tst_group_data.cdl..."
|
||||
diff tst_group_data.cdl $srcdir/ref_tst_group_data.cdl
|
||||
diff -b tst_group_data.cdl $srcdir/ref_tst_group_data.cdl
|
||||
echo "*** testing -v option with absolute name and groups..."
|
||||
./ncdump -v /g2/g3/var tst_group_data.nc > tst_group_data.cdl
|
||||
echo "*** comparing tst_group_data.cdl with ref_tst_group_data_v23.cdl..."
|
||||
diff tst_group_data.cdl $srcdir/ref_tst_group_data_v23.cdl
|
||||
diff -b tst_group_data.cdl $srcdir/ref_tst_group_data_v23.cdl
|
||||
echo "*** testing -v option with relative name and groups..."
|
||||
./ncdump -v var,var2 tst_group_data.nc > tst_group_data.cdl
|
||||
echo "*** comparing tst_group_data.cdl with ref_tst_group_data.cdl..."
|
||||
diff tst_group_data.cdl $srcdir/ref_tst_group_data.cdl
|
||||
diff -b tst_group_data.cdl $srcdir/ref_tst_group_data.cdl
|
||||
echo "*** dumping tst_enum_data.nc to tst_enum_data.cdl..."
|
||||
./ncdump tst_enum_data.nc > tst_enum_data.cdl
|
||||
echo "*** comparing tst_enum_data.cdl with ref_tst_enum_data.cdl..."
|
||||
diff tst_enum_data.cdl $srcdir/ref_tst_enum_data.cdl
|
||||
diff -b tst_enum_data.cdl $srcdir/ref_tst_enum_data.cdl
|
||||
echo "*** dumping tst_opaque_data.nc to tst_opaque_data.cdl..."
|
||||
./ncdump tst_opaque_data.nc > tst_opaque_data.cdl
|
||||
echo "*** comparing tst_opaque_data.cdl with ref_tst_opaque_data.cdl..."
|
||||
diff tst_opaque_data.cdl $srcdir/ref_tst_opaque_data.cdl
|
||||
diff -b tst_opaque_data.cdl $srcdir/ref_tst_opaque_data.cdl
|
||||
echo "*** dumping tst_vlen_data.nc to tst_vlen_data.cdl..."
|
||||
./ncdump tst_vlen_data.nc > tst_vlen_data.cdl
|
||||
echo "*** comparing tst_vlen_data.cdl with ref_tst_vlen_data.cdl..."
|
||||
diff tst_vlen_data.cdl $srcdir/ref_tst_vlen_data.cdl
|
||||
diff -b tst_vlen_data.cdl $srcdir/ref_tst_vlen_data.cdl
|
||||
echo "*** dumping tst_comp.nc to tst_comp.cdl..."
|
||||
./ncdump tst_comp.nc > tst_comp.cdl
|
||||
echo "*** comparing tst_comp.cdl with ref_tst_comp.cdl..."
|
||||
diff tst_comp.cdl $srcdir/ref_tst_comp.cdl
|
||||
diff -b tst_comp.cdl $srcdir/ref_tst_comp.cdl
|
||||
echo "*** creating tst_nans.cdl from tst_nans.nc"
|
||||
./ncdump tst_nans.nc > tst_nans.cdl
|
||||
echo "*** comparing ncdump of generated file with ref_tst_nans.cdl ..."
|
||||
diff tst_nans.cdl $srcdir/ref_tst_nans.cdl
|
||||
diff -b tst_nans.cdl $srcdir/ref_tst_nans.cdl
|
||||
# Do unicode test only if it exists => BUILD_UTF8 is true
|
||||
if test -f ./tst_unicode -o -f ./tst_unicode.exe ; then
|
||||
echo "*** dumping tst_unicode.nc to tst_unicode.cdl..."
|
||||
./tst_unicode
|
||||
./ncdump tst_unicode.nc > tst_unicode.cdl
|
||||
#echo "*** comparing tst_unicode.cdl with ref_tst_unicode.cdl..."
|
||||
#diff tst_unicode.cdl $srcdir/ref_tst_unicode.cdl
|
||||
#diff -b tst_unicode.cdl $srcdir/ref_tst_unicode.cdl
|
||||
echo "*** generating tst_nans.nc"
|
||||
fi
|
||||
./tst_special_atts
|
||||
echo "*** dumping tst_special_atts.nc to tst_special_atts.cdl..."
|
||||
./ncdump -c -s tst_special_atts.nc > tst_special_atts.cdl
|
||||
echo "*** comparing tst_special_atts.cdl with ref_tst_special_atts.cdl..."
|
||||
diff tst_special_atts.cdl $srcdir/ref_tst_special_atts.cdl
|
||||
diff -b tst_special_atts.cdl $srcdir/ref_tst_special_atts.cdl
|
||||
|
||||
echo
|
||||
echo "*** All ncgen and ncdump test output for netCDF-4 format passed!"
|
||||
|
@ -9,22 +9,22 @@ echo "*** Running extra netcdf-4 tests."
|
||||
echo "*** dumping tst_string_data.nc to tst_string_data.cdl..."
|
||||
./ncdump tst_string_data.nc > tst_string_data.cdl
|
||||
echo "*** comparing tst_string_data.cdl with ref_tst_string_data.cdl..."
|
||||
diff tst_string_data.cdl $srcdir/ref_tst_string_data.cdl
|
||||
diff -b tst_string_data.cdl $srcdir/ref_tst_string_data.cdl
|
||||
|
||||
#echo '*** testing non-coordinate variable of same name as dimension...'
|
||||
#../ncgen/ncgen -v4 -b -o tst_noncoord.nc $srcdir/ref_tst_noncoord.cdl
|
||||
|
||||
echo '*** testing reference file ref_tst_compounds2.nc...'
|
||||
./ncdump $srcdir/ref_tst_compounds2.nc > tst_compounds2.cdl
|
||||
diff tst_compounds2.cdl $srcdir/ref_tst_compounds2.cdl
|
||||
diff -b tst_compounds2.cdl $srcdir/ref_tst_compounds2.cdl
|
||||
|
||||
echo '*** testing reference file ref_tst_compounds3.nc...'
|
||||
./ncdump $srcdir/ref_tst_compounds3.nc > tst_compounds3.cdl
|
||||
diff tst_compounds3.cdl $srcdir/ref_tst_compounds3.cdl
|
||||
diff -b tst_compounds3.cdl $srcdir/ref_tst_compounds3.cdl
|
||||
|
||||
echo '*** testing reference file ref_tst_compounds4.nc...'
|
||||
./ncdump $srcdir/ref_tst_compounds4.nc > tst_compounds4.cdl
|
||||
diff tst_compounds4.cdl $srcdir/ref_tst_compounds4.cdl
|
||||
diff -b tst_compounds4.cdl $srcdir/ref_tst_compounds4.cdl
|
||||
|
||||
echo
|
||||
echo "*** All ncgen and ncdump extra test output for netCDF-4 format passed!"
|
||||
|
@ -12,7 +12,7 @@ echo "*** creating c0.nc from c0.cdl..."
|
||||
echo "*** creating c1.cdl from c0.nc..."
|
||||
./ncdump -n c1 c0.nc > c1.cdl
|
||||
echo "*** comparing ncdump of C program output (ctest1.cdl) with c1.cdl..."
|
||||
diff c1.cdl ctest1.cdl
|
||||
diff -b c1.cdl ctest1.cdl
|
||||
echo "*** test output for ncdump -k"
|
||||
test `./ncdump -k c0.nc` = "classic";
|
||||
../ncgen/ncgen -k `./ncdump -k c0.nc` -b -o c0tmp.nc $srcdir/../ncgen/c0.cdl
|
||||
@ -24,7 +24,7 @@ echo "*** creating tst_ncml.nc from tst_ncml.cdl"
|
||||
echo "*** creating c1.ncml from tst_ncml.nc"
|
||||
./ncdump -x tst_ncml.nc > c1.ncml
|
||||
echo "*** comparing ncdump -x of generated file with ref1.ncml ..."
|
||||
diff c1.ncml $srcdir/ref1.ncml
|
||||
diff -b c1.ncml $srcdir/ref1.ncml
|
||||
|
||||
echo "*** test output for ncdump -s"
|
||||
echo "*** creating tst_mslp.nc from tst_mslp.cdl"
|
||||
@ -32,7 +32,7 @@ echo "*** creating tst_mslp.nc from tst_mslp.cdl"
|
||||
echo "*** creating tst_format_att.cdl from tst_mslp.nc"
|
||||
./ncdump -s tst_mslp.nc > tst_format_att.cdl
|
||||
echo "*** comparing ncdump -s of generated file with ref_tst_format_att.cdl ..."
|
||||
diff tst_format_att.cdl $srcdir/ref_tst_format_att.cdl
|
||||
diff -b tst_format_att.cdl $srcdir/ref_tst_format_att.cdl
|
||||
|
||||
echo "*** All ncgen and ncdump test output for classic format passed!"
|
||||
|
||||
@ -44,7 +44,7 @@ echo "*** creating c0.nc from c0.cdl..."
|
||||
echo "*** creating c1.cdl from c0.nc..."
|
||||
./ncdump -n c1 c0.nc > c1.cdl
|
||||
echo "*** comparing ncdump of C program output (ctest1_64.cdl) with c1.cdl..."
|
||||
diff c1.cdl ctest1_64.cdl
|
||||
diff -b c1.cdl ctest1_64.cdl
|
||||
echo "*** test output for ncdump -k"
|
||||
test "`./ncdump -k c0.nc`" = "64-bit offset";
|
||||
../ncgen/ncgen -k 2 -b -o c0tmp.nc $srcdir/../ncgen/c0.cdl
|
||||
@ -56,7 +56,7 @@ echo "*** creating tst_mslp_64.nc from tst_mslp.cdl"
|
||||
echo "*** creating tst_format_att_64.cdl from tst_mslp_64.nc"
|
||||
./ncdump -s tst_mslp_64.nc > tst_format_att_64.cdl
|
||||
echo "*** comparing ncdump -s of generated file with ref_tst_format_att_64.cdl ..."
|
||||
diff tst_format_att_64.cdl $srcdir/ref_tst_format_att_64.cdl
|
||||
diff -b tst_format_att_64.cdl $srcdir/ref_tst_format_att_64.cdl
|
||||
|
||||
echo "*** All ncgen and ncdump test output for 64-bit offset format passed!"
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user