From cad88be77fa3bbbe163dd9cfafc9509de97cf39c Mon Sep 17 00:00:00 2001 From: Marcel Loose <loose@astron.nl> Date: Tue, 5 Oct 2010 13:06:15 +0000 Subject: [PATCH] Bug 1310: Generate CTestCustom.cmake file. This is needed, because settings like CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS need to be set in a CTestCustom.cmake file in the BINARY tree. --- CMake/LofarConfig.cmake | 7 ++++++ CTestConfig.cmake | 2 -- CTestCustom.cmake.in | 47 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 CTestCustom.cmake.in diff --git a/CMake/LofarConfig.cmake b/CMake/LofarConfig.cmake index 0b54db067af..c06179cf361 100644 --- a/CMake/LofarConfig.cmake +++ b/CMake/LofarConfig.cmake @@ -43,4 +43,11 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") ${CMAKE_BINARY_DIR}/lofarinit.csh DESTINATION .) + # Configure the CTestCustom.cmake file, used by CTest/Dart, if it exists. + if(EXISTS ${CMAKE_SOURCE_DIR}/CTestCustom.cmake.in) + configure_file( + ${CMAKE_SOURCE_DIR}/CTestCustom.cmake.in + ${CMAKE_BINARY_DIR}/CTestCustom.cmake @ONLY) + endif(EXISTS ${CMAKE_SOURCE_DIR}/CTestCustom.cmake.in) + endif("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") diff --git a/CTestConfig.cmake b/CTestConfig.cmake index a32c90bc789..2ca5cff05f2 100644 --- a/CTestConfig.cmake +++ b/CTestConfig.cmake @@ -11,5 +11,3 @@ set(CTEST_DROP_METHOD "http") set(CTEST_DROP_SITE "svn.astron.nl") set(CTEST_DROP_LOCATION "/CDash/submit.php?project=LOFAR") set(CTEST_DROP_SITE_CDASH TRUE) - -set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS "200") diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in new file mode 100644 index 00000000000..e00453665d5 --- /dev/null +++ b/CTestCustom.cmake.in @@ -0,0 +1,47 @@ +# - CTest custom settings. +# See http://www.cmake.org/Wiki/CMake_Testing_With_CTest for details. + +# Regular expression for errors during build process +set(CTEST_CUSTOM_ERROR_MATCH) + +# Regular expression for error exceptions during build process +set(CTEST_CUSTOM_ERROR_EXCEPTION) + +# Regular expression for warnings during build process +set(CTEST_CUSTOM_WARNING_MATCH) + +# Regular expression for warning exception during build process +set(CTEST_CUSTOM_WARNING_EXCEPTION) + +# Maximum number of errors to display +set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS) + +# Maximum number of warnings to display +set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 200) + +# List of tests to ignore during the Test stage +set(CTEST_CUSTOM_TESTS_IGNORE) + +# List of tests to ignore during the MemCheck stage +set(CTEST_CUSTOM_MEMCHECK_IGNORE) + +# Command to execute before any tests are run during Test stage +set(CTEST_CUSTOM_PRE_TEST) + +# Command to execute after any tests are run during Test stage +set(CTEST_CUSTOM_POST_TEST) + +# Maximum size of passed test output +set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE) + +# Maximum size of failed test output +set(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE) + +# Command to execute before any tests are run during MemCheck stage +set(CTEST_CUSTOM_PRE_MEMCHECK) + +# Command to execute after any tests are run during MemCheck stage +set(CTEST_CUSTOM_POST_MEMCHECK) + +# Regular expression for excluding files from coverage testing +set(CTEST_CUSTOM_COVERAGE_EXCLUDE) -- GitLab