forked from InsightSoftwareConsortium/ITK
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCTestCustom.cmake.in
More file actions
182 lines (158 loc) · 6.91 KB
/
Copy pathCTestCustom.cmake.in
File metadata and controls
182 lines (158 loc) · 6.91 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
#
# Note that the ITK/CMakeLists.txt file configures this file
#
# CMake/CTestCustom.cmake.in
#
# to this file
#
# ${ITK_BINARY_DIR}/CTestCustom.cmake
#
#----------------------------------------------------------------------
#
# For further details regarding this file,
# see https://www.cmake.org/Wiki/CMake_Testing_With_CTest#Customizing_CTest
#
# and
# https://www.kitware.com/blog/home/post/27
#
#----------------------------------------------------------------------
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 199)
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 50)
set(CTEST_CUSTOM_TESTS_IGNORE
@CTEST_CUSTOM_TESTS_IGNORE@
)
set(CTEST_CUSTOM_MEMCHECK_IGNORE
@CTEST_CUSTOM_MEMCHECK_IGNORE@
)
set(CTEST_EXTRA_COVERAGE_GLOB
Source/.*/*.h
Source/.*/*.txx
Source/.*/*.cxx
)
set(CTEST_CUSTOM_COVERAGE_EXCLUDE
${CTEST_CUSTOM_COVERAGE_EXCLUDE}
# Exclude try_compile sources from coverage results:
"/CMakeFiles/CMakeTmp/"
# Exclude files from the Examples directories
".*/Examples/.*"
# Exclude files from the Testing directories
".*/test/.*"
".*/Testing/.*"
# Exclude files from the ThirdParty Utilities directories
".*/ThirdParty/.*"
".*/Utilities/.*"
# Exclude files from the Wrapping directories
".*/Wrapping/.*"
)
set(CTEST_CUSTOM_WARNING_EXCEPTION
${CTEST_CUSTOM_WARNING_EXCEPTION}
"warning LNK4221.*no public symbols found"
"ranlib:.*file:.*has no symbols"
"ranlib: file: .+ has no symbols"
"libtool:.*file:.*has no symbols"
"ipo: warning #11053"
"ipo: warning #11053"
"vxl.core.vnl.algo"
"vxl.core.vnl"
"vxl.v3p.netlib"
"itkjpeg"
"usr.include.stdint.h"
"Warning itk::Statistics::Histogram"
"itkIOCommonTest.cxx:.*warning:.* is deprecated"
"/usr/bin/ld: warning: libnetcdf.so.3, needed by.*may conflict with libnetcdf.so.4"
"itkQuadEdgeMeshEdgeMergeDecimationFilter.hxx:.*warning: unused parameter.*iEdge.*"
"vnl_diag_matrix.h"
"WARNING non-zero return value in ctest"
"Warning.*Anachronism.*"
"attempted multiple inclusion of file"
"warning LNK4221: This object file does not define any previously undefined public symbols"
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Dd][Ii][Cc][Oo][Mm][Pp]arser[/\\\\].*[Ww]arning.*"
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Ee]xpat[/\\\\].*[Ww]arning.*"
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Jj][Pp][Ee][Gg][/\\\\].*[Ww]arning.*"
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Kk][Ww][Ss]ys[/\\\\].*[Ww]arning.*"
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Mm]eta[Ii][Oo][/\\\\].*[Ww]arning.*"
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Nn]etlib[/\\\\].*[Ww]arning.*"
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Nn][Ii][Ff][Tt][Ii][/\\\\].*[Ww]arning.*"
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Oo]pen[Jj][Pp][Ee][Gg][/\\\\].*[Ww]arning.*"
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Pp][Nn][Gg][/\\\\].*[Ww]arning.*"
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Tt][Ii][Ff][Ff][/\\\\].*[Ww]arning.*"
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Vv][Nn][Ll][/\\\\].*[Ww]arning.*"
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Vv][Nn][Ll][Ii]nstantiation[/\\\\].*[Ww]arning.*"
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Zz][Ll][Ii][Bb][/\\\\].*[Ww]arning.*"
".*Microsoft.*include.*win.*.h.*[Ww]arning.*"
".*include.opencv2.*warning.*"
".*core.vidl.*warning.*"
".*core.vnl.vnl_matrix_fixed.h.*warning.*"
# ExternalProject: Git writes status to stderr
"Cloning into.*"
"Note: checking out.*"
"HEAD is now at.*"
# FFTW ExternalProject
".*fftw[fd]/src/fftw[fd]./*"
"libtool: install: warning: relinking .libfftw3f?_threads.la."
# Ignore clang's summary warning, assuming prior text has matched some
# other warning expression:
"[0-9,]+ warnings? generated."
# The PCRE, SWIG, and third party builds for wrapping.
".*/PCRE/.*"
".*/swig/.*"
".*parser.py.*"
"checking maximum warning verbosity option.*"
"warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries"
# Doxygen warnings
"include/itkIsConvertible.h:[0-9]+: warning: Conditional section with label HIDE_META_PROGRAMMING"
# Ignore deprecation warning for LabelGeometryImageFilter
"warning:.*itk::LabelGeometryImageFilter.*deprecated"
# KWStyle's internal utilities
".*KWStyle/Utilities.*"
# ignore third party GoogleTest warnings
".*Modules/ThirdParty/GoogleTest.*:warning:.*"
# ignore -Wunused-template warnings in third party DoubleConversion.
".*Modules/ThirdParty/DoubleConversion/.*warning:.*Wunused-template"
# ignore some third party warnings
".*Modules/ThirdParty/.*warning:.*Wzero-as-null-pointer-constant"
".*Modules/ThirdParty/Eigen3/.*warning:.*"
# MSVC emits "warning C####:" rather than "warning:"; cover that form too
# so Eigen-internal MSVC warnings (e.g. C4750 from
# Eigenvalues/Tridiagonalization.h, "function with _alloca() inlined into
# a loop") do not fail the dashboard.
".*Modules.ThirdParty.Eigen3.*warning C[0-9]+:.*"
# GCC IPA-CP cloning produces -Wmaybe-uninitialized false positives in
# Core/products/SelfadjointMatrixVector.h at -O3 + C++20 on Ubuntu 24.04
# (and matching ARM toolchains); the multi-line "note: by argument N of
# type ... declared here" continuation also lives in Eigen3 paths.
# The 'warning:' wildcard above already covers the primary line; this
# extra pattern silences GCC's path-less continuation lines that the
# reporter associates with the same Eigen file.
".*Modules/ThirdParty/Eigen3/.*note:.*"
# Apple clang on macOS does not recognise GCC's -Wmaybe-uninitialized
# warning group, so every use of ITK_GCC_SUPPRESS_Wmaybe_uninitialized
# in itkMacro.h emits a four-line diagnostic burst (warning + three
# macro-expansion notes per site). At ~50 use-sites that's ~200
# warnings on a single Darwin Python build, which exceeds the dashboard
# ceiling. Suppressing the four lines individually keeps any genuine
# -Wunknown-warning-option diagnostic from a non-Wmaybe context still
# visible.
"warning: unknown warning group '-Wmaybe-uninitialized'"
"note: expanded from macro 'ITK_GCC_SUPPRESS_Wmaybe_uninitialized'"
"note: expanded from macro 'ITK_PRAGMA'"
# CircleCI distcc warnings
".*WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED.*"
"Warning: Permanently added.*to the list of known hosts"
# macOS std::string visibility linker warnings
"for std::string means the weak symbol cannot be overridden at runtime"
"global weak symbol typeinfo name for std::vector<"
"global weak symbol typeinfo for std::vector<"
)
if(APPLE)
set(CTEST_CUSTOM_WARNING_EXCEPTION
${CTEST_CUSTOM_WARNING_EXCEPTION}
"warning -.: directory name .* does not exist"
"ld.*warning.*duplicate dylib.*"
"ld: warning: text-based stub file /System/Library/Frameworks/.*Falling back to library file for linking."
)
endif()
set(CTEST_CUSTOM_ERROR_EXCEPTION
# Emscripten
".*WARNING root: emcc: cannot find library.*"
)