From ee6de957bfc57b281e6de7cd3544eac0afd58ab0 Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Fri, 12 Apr 2013 22:38:46 +0200 Subject: Added docs on available variables and reenabled coverage with nightly builds --- contrib/ctest/common.ctest.inc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/contrib/ctest/common.ctest.inc b/contrib/ctest/common.ctest.inc index 76b8e73..2f1131d 100644 --- a/contrib/ctest/common.ctest.inc +++ b/contrib/ctest/common.ctest.inc @@ -19,6 +19,26 @@ # We will always build in /tmp/build-* # +### Custom ctest +# see http://lists.gforge.inria.fr/pipermail/simgrid-commits/2010-November/016461.html + +# CTEST_CUSTOM_ERROR_MATCH Regular expression for errors during build process +# CTEST_CUSTOM_ERROR_EXCEPTION Regular expression for error exceptions during build process +# CTEST_CUSTOM_WARNING_MATCH Regular expression for warnings during build process +# CTEST_CUSTOM_WARNING_EXCEPTION Regular expression for warning exception during build process +# CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS Maximum number of errors to display +# CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS Maximum number of warnings to display +# CTEST_CUSTOM_TESTS_IGNORE List of tests to ignore during the Test stage +# CTEST_CUSTOM_MEMCHECK_IGNORE List of tests to ignore during the MemCheck stage +# CTEST_CUSTOM_PRE_TEST Command to execute before any tests are run during Test stage +# CTEST_CUSTOM_POST_TEST Command to execute after any tests are run during Test stage +# CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE Maximum size of passed test output +# CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE Maximum size of failed test output +# CTEST_CUSTOM_PRE_MEMCHECK Command to execute before any tests are run during MemCheck stage +# CTEST_CUSTOM_POST_MEMCHECK Command to execute after any tests are run during MemCheck stage +# CTEST_CUSTOM_COVERAGE_EXCLUDE Regular expression for excluding files from coverage testing + + if ("$ENV{CTEST_SUBMIT_TYPE}" STREQUAL "") message(FATAL_ERROR "ENV{CTEST_SUBMIT_TYPE} is emtpy") endif() @@ -38,6 +58,10 @@ set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 4194304) if (${CTEST_SUBMIT_TYPE} MATCHES "Nightly") find_program(CTEST_COVERAGE_COMMAND NAMES gcov) + SET(CTEST_CUSTOM_COVERAGE_EXCLUDE + "${CTEST_SOURCE_DIRECTORY}/contrib/*" + ) + endif() #find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind) -- cgit v0.12