forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCTestCustom.cmake.in
39 lines (32 loc) · 1.33 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
# -*- mode: cmake -*-
# vi: set ft=cmake :
list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
".*/test/.*"
".*/third_party/.*"
)
string(ASCII 27 ESC)
# Note that due to limitations in the CMake language there may only be one
# element in each list containing mismatched opening square brackets
# (i.e., [ without matching ]) and that element must be the last element of the
# list.
# Never ever EVER _**EVER**_ should CTest fail the build of its own accord.
list(APPEND CTEST_CUSTOM_ERROR_EXCEPTION
".*"
)
# 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" emitted by Bazel may be colored magenta (CSI 35m) and "warning"
# emitted by Clang may be colored magenta (CSI 35m) and bolded (CSI 1m).
list(APPEND CTEST_CUSTOM_WARNING_MATCH
": DrakeDeprecationWarning: "
"^WARNING: "
": warning: "
"(^${ESC}\\[35mWARNING|: ${ESC}\\[0m${ESC}\\[0\;1\;35mwarning): ${ESC}\\[0m"
)
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 100)
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 100)