CTestCustom.cmake.in 2.46 KB
Newer Older
1 2
# - CTest custom settings.
# See http://www.cmake.org/Wiki/CMake_Testing_With_CTest for details.
3 4 5 6 7 8
#
# This file will be configured by LofarConfig.cmake; its output will be stored
# in the top-level build directory. Any of the variables below can be set by
# the user, either on the command line or in the variants file(s).

# $Id$
9

10 11 12 13 14 15 16
# Assign contents of <val> to <var> if <val> is set. 
macro(set_if_set var val)
  if(NOT "${val}" MATCHES "^$")
    set("${var}" "${val}")
  endif(NOT "${val}" MATCHES "^$")
endmacro(set_if_set)

17
# Regular expression for errors during build process
18
set_if_set(CTEST_CUSTOM_ERROR_MATCH "@CTEST_CUSTOM_ERROR_MATCH@")
19 20

# Regular expression for error exceptions during build process
21
set_if_set(CTEST_CUSTOM_ERROR_EXCEPTION "@CTEST_CUSTOM_ERROR_EXCEPTION@")
22 23

# Regular expression for warnings during build process
24
set_if_set(CTEST_CUSTOM_WARNING_MATCH "@CTEST_CUSTOM_WARNING_MATCH@")
25 26

# Regular expression for warning exception during build process
27
set_if_set(CTEST_CUSTOM_WARNING_EXCEPTION "@CTEST_CUSTOM_WARNING_EXCEPTION@")
28 29

# Maximum number of errors to display
30
set_if_set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS "@CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS@")
31 32

# Maximum number of warnings to display
33
set_if_set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS "@CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS@")
34 35

# List of tests to ignore during the Test stage
36
set_if_set(CTEST_CUSTOM_TESTS_IGNORE "@CTEST_CUSTOM_TESTS_IGNORE@")
37 38

# List of tests to ignore during the MemCheck stage
39
set_if_set(CTEST_CUSTOM_MEMCHECK_IGNORE "@CTEST_CUSTOM_MEMCHECK_IGNORE@")
40 41

# Command to execute before any tests are run during Test stage
42
set_if_set(CTEST_CUSTOM_PRE_TEST "@CTEST_CUSTOM_PRE_TEST@")
43 44

# Command to execute after any tests are run during Test stage
45
set_if_set(CTEST_CUSTOM_POST_TEST "@CTEST_CUSTOM_POST_TEST@")
46 47

# Maximum size of passed test output
48
set_if_set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE "@CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE@")
49 50

# Maximum size of failed test output
51
set_if_set(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE "@CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE@")
52 53

# Command to execute before any tests are run during MemCheck stage
54
set_if_set(CTEST_CUSTOM_PRE_MEMCHECK "@CTEST_CUSTOM_PRE_MEMCHECK@")
55 56

# Command to execute after any tests are run during MemCheck stage
57
set_if_set(CTEST_CUSTOM_POST_MEMCHECK "@CTEST_CUSTOM_POST_MEMCHECK@")
58 59

# Regular expression for excluding files from coverage testing
60
set_if_set(CTEST_CUSTOM_COVERAGE_EXCLUDE "@CTEST_CUSTOM_COVERAGE_EXCLUDE@")