mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-17 16:50:18 +08:00
Wiring in a quick test.
This commit is contained in:
parent
c27153edb6
commit
e8af76c2f4
@ -501,6 +501,14 @@ IF(ENABLE_NETCDF_4)
|
||||
SET(ENABLE_NETCDF4 ON CACHE BOOL "")
|
||||
ENDIF()
|
||||
|
||||
# Option to allow for strict null file padding.
|
||||
# See https://github.com/Unidata/netcdf-c/issues/657 for more information
|
||||
OPTION(ENABLE_STRICT_NULL_BYTE_HEADER_PADDING "Enable strict null byte header padding." OFF)
|
||||
SET(USE_STRICT_NULL_BYTE_HEADER_PADDING OFF CACHE BOOL "")
|
||||
IF(ENABLE_STRICT_NULL_BYTE_HEADER_PADDING)
|
||||
SET(USE_STRICT_NULL_BYTE_HEADER_PADDING ON CACHE BOOL "")
|
||||
ENDIF(ENABLE_STRICT_NULL_BYTE_HEADER_PADDING)
|
||||
|
||||
# Option for building RPC
|
||||
OPTION(ENABLE_RPC "Enable RPC Client and Server." OFF)
|
||||
IF(ENABLE_RPC)
|
||||
@ -826,7 +834,6 @@ ELSE()
|
||||
SET(ENABLE_DAP4 OFF)
|
||||
ENDIF()
|
||||
|
||||
# Check to see if libtool supports
|
||||
|
||||
# Check for the math library so it can be explicitly linked.
|
||||
IF(NOT WIN32)
|
||||
|
@ -111,6 +111,9 @@ are set when opening a binary file on Windows. */
|
||||
#cmakedefine ENABLE_CDF5 1
|
||||
#cmakedefine USE_CDF5 1
|
||||
|
||||
/* if true, enable strict null byte header padding. */
|
||||
#cmakedefine USE_STRICT_NULL_BYTE_HEADER_PADDING 1
|
||||
|
||||
/* if true, build DAP2 and DAP4 Client */
|
||||
#cmakedefine ENABLE_DAP 1
|
||||
|
||||
|
@ -116,6 +116,10 @@ ENDIF()
|
||||
add_sh_test(ncdump tst_hdf5_offset)
|
||||
ENDIF(USE_NETCDF4)
|
||||
|
||||
IF(NOT USE_STRICT_NULL_BYTE_HEADER_PADDING)
|
||||
add_sh_test(ncdump tst_null_byte_padding)
|
||||
ENDIF(NOT USE_STRICT_NULL_BYTE_HEADER_PADDING)
|
||||
|
||||
add_sh_test(ncdump tst_nccopy3)
|
||||
add_sh_test(ncdump tst_nccopy3_subset)
|
||||
add_sh_test(ncdump tst_charfill)
|
||||
|
@ -151,7 +151,8 @@ tst_fileinfo.sh run_ncgen_tests.sh test_360_day_1900.nc \
|
||||
test_365_day_1900.nc test_366_day_1900.nc ref_test_360_day_1900.cdl \
|
||||
ref_test_365_day_1900.cdl ref_test_366_day_1900.cdl \
|
||||
tst_hdf5_offset.sh run_ncgen_nc4_tests.sh tst_nccopy3_subset.sh \
|
||||
ref_nccopy3_subset.nc test_corrupt_magic.nc
|
||||
ref_nccopy3_subset.nc test_corrupt_magic.nc ref_null_byte_padding_test.nc \
|
||||
tst_null_byte_padding.sh
|
||||
|
||||
# The L512.bin file is file containing exactly 512 bytes each of value 0.
|
||||
# It is used for creating hdf5 files with varying offsets for testing.
|
||||
|
BIN
ncdump/ref_null_byte_padding_test.nc
Normal file
BIN
ncdump/ref_null_byte_padding_test.nc
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user