mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Removed static CTestConfig.cmake file, replaced with a parameterized template that is used to generate a CTestConfig.cmake at configure time.
This commit is contained in:
parent
a9d20ccef6
commit
085dc28040
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
CTestConfig.cmake
|
||||||
Vagrantfile
|
Vagrantfile
|
||||||
build*
|
build*
|
||||||
html
|
html
|
||||||
|
@ -460,10 +460,6 @@ IF(NOT NETCDF_LIB_NAME STREQUAL "")
|
|||||||
SET(MOD_NETCDF_NAME ON)
|
SET(MOD_NETCDF_NAME ON)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# Option to use a local or remote CDash instance.
|
|
||||||
# instances Defined in CTestConfig.cmake
|
|
||||||
OPTION (USE_REMOTE_CDASH "Use CDash instance at CDash.org." OFF)
|
|
||||||
|
|
||||||
# Set the appropriate compiler/architecture for universal OSX binaries.
|
# Set the appropriate compiler/architecture for universal OSX binaries.
|
||||||
IF(${CMAKE_SYSTEM_NAME} EQUAL "Darwin")
|
IF(${CMAKE_SYSTEM_NAME} EQUAL "Darwin")
|
||||||
SET(CMAKE_OSX_ARCHITECTURES i386;x86_64)
|
SET(CMAKE_OSX_ARCHITECTURES i386;x86_64)
|
||||||
@ -816,6 +812,17 @@ ENDIF()
|
|||||||
OPTION (ENABLE_TESTS "Enable basic tests, run with 'make test'." ON)
|
OPTION (ENABLE_TESTS "Enable basic tests, run with 'make test'." ON)
|
||||||
IF(ENABLE_TESTS)
|
IF(ENABLE_TESTS)
|
||||||
SET(BUILD_TESTSETS ON CACHE BOOL "")
|
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.")
|
||||||
|
SET(NC_CTEST_DROP_SITE "my.cdash.org" CACHE STRING "Dashboard location for CTest-based testing purposes.")
|
||||||
|
|
||||||
|
# Create a CTestConfig file from the template.
|
||||||
|
CONFIGURE_FILE("${netCDF_SOURCE_DIR}/CTestConfig.cmake.in"
|
||||||
|
"${netCDF_SOURCE_DIR}/CTestConfig.cmake"
|
||||||
|
@ONLY
|
||||||
|
)
|
||||||
|
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# Enable Large file tests
|
# Enable Large file tests
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
|
|
||||||
set(DART_TESTING_TIMEOUT "4800")
|
set(DART_TESTING_TIMEOUT "4800")
|
||||||
|
|
||||||
set(CTEST_PROJECT_NAME "netcdf-c")
|
set(CTEST_PROJECT_NAME "@NC_CTEST_PROJECT_NAME@")
|
||||||
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
|
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
|
||||||
|
|
||||||
set(CTEST_DROP_METHOD "http")
|
set(CTEST_DROP_METHOD "http")
|
||||||
set(CTEST_DROP_SITE "my.cdash.org")
|
set(CTEST_DROP_SITE "@NC_CTEST_DROP_SITE@")
|
||||||
set(CTEST_DROP_LOCATION "/submit.php?project=netcdf-c")
|
set(CTEST_DROP_LOCATION "/submit.php?project=@NC_CTEST_PROJECT_NAME@")
|
||||||
set(CTEST_DROP_SITE_CDASH TRUE)
|
set(CTEST_DROP_SITE_CDASH TRUE)
|
Loading…
Reference in New Issue
Block a user