forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CTestCustom.cmake.in
41 lines (34 loc) · 1.17 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
# -*- mode: cmake -*-
# vi: set ft=cmake :
list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
".*/test/.*"
".*/third_party/.*"
)
string(ASCII 27 ESC)
# DEBUG may be colored yellow (CSI 33m) and WARNING may be colored magenta
# (CSI 35m).
list(APPEND CTEST_CUSTOM_ERROR_EXCEPTION
"^DEBUG: "
"^WARNING: "
":[0-9]+: Failure$"
"^${ESC}\\[(33mDEBUG|35mWARNING): ${ESC}\\[0m"
)
# ERROR may be colored red (CSI 31m) and bolded (CSI 1m).
list(APPEND CTEST_CUSTOM_ERROR_MATCH
"^ERROR: "
"^${ESC}\\[31m${ESC}\\[1mERROR: ${ESC}\\[0m"
)
# Ignore various Mac CROSSTOOL-related warnings.
list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
"ranlib: file: .* has no symbols"
"ranlib: warning for library: .* the table of contents is empty \\(no object file members in the library define global symbols\\)"
"warning: argument unused during compilation: '-pie' \\[-Wunused-command-line-argument\\]"
"warning: '_FORTIFY_SOURCE' macro redefined \\[-Wmacro-redefined\\]"
)
# WARNING may be colored magenta (CSI 35m).
list(APPEND CTEST_CUSTOM_WARNING_MATCH
"^WARNING: "
"^${ESC}\\[35mWARNING: ${ESC}\\[0m"
)
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 100)
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 100)