-
Notifications
You must be signed in to change notification settings - Fork 4
/
CTestCustom.cmake.in
60 lines (43 loc) · 2.46 KB
/
CTestCustom.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# - CTest custom settings.
# See http://www.cmake.org/Wiki/CMake_Testing_With_CTest for details.
#
# 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$
# 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)
# Regular expression for errors during build process
set_if_set(CTEST_CUSTOM_ERROR_MATCH "@CTEST_CUSTOM_ERROR_MATCH@")
# Regular expression for error exceptions during build process
set_if_set(CTEST_CUSTOM_ERROR_EXCEPTION "@CTEST_CUSTOM_ERROR_EXCEPTION@")
# Regular expression for warnings during build process
set_if_set(CTEST_CUSTOM_WARNING_MATCH "@CTEST_CUSTOM_WARNING_MATCH@")
# Regular expression for warning exception during build process
set_if_set(CTEST_CUSTOM_WARNING_EXCEPTION "@CTEST_CUSTOM_WARNING_EXCEPTION@")
# Maximum number of errors to display
set_if_set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS "@CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS@")
# Maximum number of warnings to display
set_if_set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS "@CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS@")
# List of tests to ignore during the Test stage
set_if_set(CTEST_CUSTOM_TESTS_IGNORE "@CTEST_CUSTOM_TESTS_IGNORE@")
# List of tests to ignore during the MemCheck stage
set_if_set(CTEST_CUSTOM_MEMCHECK_IGNORE "@CTEST_CUSTOM_MEMCHECK_IGNORE@")
# Command to execute before any tests are run during Test stage
set_if_set(CTEST_CUSTOM_PRE_TEST "@CTEST_CUSTOM_PRE_TEST@")
# Command to execute after any tests are run during Test stage
set_if_set(CTEST_CUSTOM_POST_TEST "@CTEST_CUSTOM_POST_TEST@")
# Maximum size of passed test output
set_if_set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE "@CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE@")
# Maximum size of failed test output
set_if_set(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE "@CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE@")
# Command to execute before any tests are run during MemCheck stage
set_if_set(CTEST_CUSTOM_PRE_MEMCHECK "@CTEST_CUSTOM_PRE_MEMCHECK@")
# Command to execute after any tests are run during MemCheck stage
set_if_set(CTEST_CUSTOM_POST_MEMCHECK "@CTEST_CUSTOM_POST_MEMCHECK@")
# Regular expression for excluding files from coverage testing
set_if_set(CTEST_CUSTOM_COVERAGE_EXCLUDE "@CTEST_CUSTOM_COVERAGE_EXCLUDE@")