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:
Ward Fisher 2014-04-15 18:16:08 -06:00
parent a9d20ccef6
commit 085dc28040
3 changed files with 15 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
CTestConfig.cmake
Vagrantfile
build*
html

View File

@ -460,10 +460,6 @@ IF(NOT NETCDF_LIB_NAME STREQUAL "")
SET(MOD_NETCDF_NAME ON)
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.
IF(${CMAKE_SYSTEM_NAME} EQUAL "Darwin")
SET(CMAKE_OSX_ARCHITECTURES i386;x86_64)
@ -816,6 +812,17 @@ ENDIF()
OPTION (ENABLE_TESTS "Enable basic tests, run with 'make test'." ON)
IF(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.")
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()
# Enable Large file tests

View File

@ -8,10 +8,10 @@
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_DROP_METHOD "http")
set(CTEST_DROP_SITE "my.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=netcdf-c")
set(CTEST_DROP_SITE "@NC_CTEST_DROP_SITE@")
set(CTEST_DROP_LOCATION "/submit.php?project=@NC_CTEST_PROJECT_NAME@")
set(CTEST_DROP_SITE_CDASH TRUE)