mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
fix use of tail in run_back_comp_tests.sh
This commit is contained in:
parent
3e592a2604
commit
6898930374
@ -6,9 +6,12 @@ echo ""
|
||||
echo "*** Testing that this version can read data produced by old versions of netCDF."
|
||||
echo "*** checking ref_nc_test_netcdf4_4_0.nc..."
|
||||
./ncdump $srcdir/ref_nc_test_netcdf4_4_0.nc > tst_nc_test_netcdf4_4_0.cdl
|
||||
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
|
||||
# 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
|
||||
|
||||
|
||||
# echo "*** Testing that old versions can read data produced by this version of netCDF."
|
||||
# echo "*** checking version 4.0..."
|
||||
|
Loading…
Reference in New Issue
Block a user