mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-24 16:04:40 +08:00
Replace ENABLE_TESTS with NETCDF_ENABLE_TESTS
This commit is contained in:
parent
6c652a6495
commit
a82659b0e9
@ -748,8 +748,8 @@ endif()
|
||||
##
|
||||
# Enable Tests
|
||||
##
|
||||
option(ENABLE_TESTS "Enable basic tests, run with 'make test'." ON)
|
||||
if(ENABLE_TESTS)
|
||||
option(NETCDF_ENABLE_TESTS "Enable basic tests, run with 'make test'." ON)
|
||||
if(NETCDF_ENABLE_TESTS)
|
||||
set(BUILD_TESTSETS ON CACHE BOOL "")
|
||||
# Options for CTest-based tests, dashboards.
|
||||
set(NC_CTEST_PROJECT_NAME "netcdf-c" CACHE STRING "Project Name for CTest-based testing purposes.")
|
||||
@ -1441,7 +1441,7 @@ if(NETCDF_BUILD_UTILITIES)
|
||||
endif()
|
||||
|
||||
# Enable tests
|
||||
if(ENABLE_TESTS)
|
||||
if(NETCDF_ENABLE_TESTS)
|
||||
if(ENABLE_V2_API)
|
||||
add_subdirectory(nctest)
|
||||
endif()
|
||||
@ -1762,7 +1762,7 @@ if(NETCDF_ENABLE_BENCHMARKS)
|
||||
endif(NETCDF_ENABLE_PARALLEL4)
|
||||
endif(NETCDF_ENABLE_BENCHMARKS)
|
||||
|
||||
if(ENABLE_TESTS)
|
||||
if(NETCDF_ENABLE_TESTS)
|
||||
#####
|
||||
# Build ncdap_test|dap4_test/findtestserver[4].c
|
||||
#####
|
||||
|
@ -236,8 +236,8 @@ macro(print_conf_summary)
|
||||
message("")
|
||||
endif()
|
||||
|
||||
message("Tests Enabled: ${ENABLE_TESTS}")
|
||||
if(ENABLE_TESTS)
|
||||
message("Tests Enabled: ${NETCDF_ENABLE_TESTS}")
|
||||
if(NETCDF_ENABLE_TESTS)
|
||||
message(STATUS "DAP Remote Tests: ${NETCDF_ENABLE_DAP_REMOTE_TESTS}")
|
||||
message(STATUS "Extra Tests: ${NETCDF_ENABLE_EXTRA_TESTS}")
|
||||
message(STATUS "Coverage Tests: ${NETCDF_ENABLE_COVERAGE_TESTS}")
|
||||
|
@ -28,7 +28,7 @@ IF(NETCDF_ENABLE_DAP_REMOTE_TESTS)
|
||||
BUILD_BIN_TEST(pingurl4)
|
||||
ENDIF()
|
||||
|
||||
IF(ENABLE_TESTS)
|
||||
IF(NETCDF_ENABLE_TESTS)
|
||||
|
||||
# Base tests
|
||||
# The tests are set up as a combination of shell scripts and executables that
|
||||
@ -68,7 +68,7 @@ ENDIF()
|
||||
ENDIF()
|
||||
ENDIF(NETCDF_ENABLE_DAP_REMOTE_TESTS)
|
||||
|
||||
ENDIF(ENABLE_TESTS)
|
||||
ENDIF(NETCDF_ENABLE_TESTS)
|
||||
|
||||
#FILE(COPY ./baseline DESTINATION ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
#FILE(COPY ./baselineraw DESTINATION ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
@ -99,7 +99,7 @@ if(NETCDF_ENABLE_S3)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(ENABLE_TESTS)
|
||||
if(NETCDF_ENABLE_TESTS)
|
||||
BUILD_BIN_TEST(ncrandom)
|
||||
endif()
|
||||
|
||||
|
@ -13,7 +13,7 @@ remove_definitions(-DDLL_EXPORT)
|
||||
FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.sh)
|
||||
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ FILE_PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE)
|
||||
|
||||
IF(ENABLE_TESTS)
|
||||
IF(NETCDF_ENABLE_TESTS)
|
||||
|
||||
IF(NETCDF_ENABLE_DAP_REMOTE_TESTS)
|
||||
BUILD_BIN_TEST(findtestserver)
|
||||
|
@ -103,7 +103,7 @@ if(MSVC)
|
||||
|
||||
endif()
|
||||
|
||||
if(ENABLE_TESTS)
|
||||
if(NETCDF_ENABLE_TESTS)
|
||||
|
||||
add_executable(rewrite-scalar rewrite-scalar.c)
|
||||
add_executable(bom bom.c)
|
||||
@ -319,7 +319,7 @@ endif()
|
||||
|
||||
endif(HAVE_BASH)
|
||||
|
||||
endif(ENABLE_TESTS)
|
||||
endif(NETCDF_ENABLE_TESTS)
|
||||
|
||||
#IF(MSVC)
|
||||
# set_target_properties(ncdump
|
||||
|
@ -54,7 +54,7 @@ IF(USE_X_GETOPT)
|
||||
SET(XGETOPTSRC "${CMAKE_CURRENT_SOURCE_DIR}/../libdispatch/XGetopt.c")
|
||||
ENDIF()
|
||||
|
||||
IF(ENABLE_TESTS)
|
||||
IF(NETCDF_ENABLE_TESTS)
|
||||
|
||||
add_library(ut_util STATIC ut_util.c ut_test.c ut_includes.h ut_test.h ${XGETOPTSRC})
|
||||
IF(NETCDF_ENABLE_DLL)
|
||||
@ -233,7 +233,7 @@ IF(ENABLE_TESTS)
|
||||
|
||||
ENDIF(NETCDF_BUILD_UTILITIES)
|
||||
|
||||
ENDIF(ENABLE_TESTS)
|
||||
ENDIF(NETCDF_ENABLE_TESTS)
|
||||
|
||||
## Specify files to be distributed by 'make dist'
|
||||
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.c ${CMAKE_CURRENT_SOURCE_DIR}/*.h ${CMAKE_CURRENT_SOURCE_DIR}/*.sh ${CMAKE_CURRENT_SOURCE_DIR}/*.cdl)
|
||||
|
Loading…
Reference in New Issue
Block a user