adding run_zstd_test.sh to cmake build

This commit is contained in:
Ed 2024-08-14 14:07:22 -06:00
parent bded163c38
commit c93d6cc7cd

View File

@ -102,12 +102,13 @@ IF(HAVE_H5Z_SZIP)
ENDIF()
ENDIF()
IF(HAVE_ZSTD)
BUILD_BIN_TEST(tst_zstd)
# add_sh_test(nc_test4 run_zstd_test)
IF(USE_HDF5 AND NETCDF_ENABLE_FILTER_TESTING)
IF(HAVE_ZSTD)
BUILD_BIN_TEST(tst_zstd)
add_sh_test(nc_test4 run_zstd_test)
ENDIF()
ENDIF()
# Copy some test files from current source dir to out-of-tree build dir.
FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.nc ${CMAKE_CURRENT_SOURCE_DIR}/ref_bzip2.c ${CMAKE_CURRENT_SOURCE_DIR}/*.sh ${CMAKE_CURRENT_SOURCE_DIR}/*.h5 ${CMAKE_CURRENT_SOURCE_DIR}/*.cdl)
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)