CTestCustom.ctest.in 15.8 KB
Newer Older
1 2 3 4 5 6
SET(CTEST_CUSTOM_MEMCHECK_IGNORE
  ${CTEST_CUSTOM_MEMCHECK_IGNORE}
  Example-vtkLocal
  Example-vtkMy

  # These tests do not actually run any VTK code
7
  HeaderTesting-Charts
8 9 10
  HeaderTesting-Common
  HeaderTesting-Filtering
  HeaderTesting-GenericFiltering
11 12 13
  HeaderTesting-Geovis
  HeaderTesting-Graphics
  HeaderTesting-Hybrid
14
  HeaderTesting-Imaging
15
  HeaderTesting-Infovis
16
  HeaderTesting-IO
17
  HeaderTesting-Parallel
18
  HeaderTesting-Rendering
19
  HeaderTesting-Views
20 21
  HeaderTesting-VolumeRendering
  HeaderTesting-Widgets
22

23
  PrintSelf-Charts
24 25 26
  PrintSelf-Common
  PrintSelf-Filtering
  PrintSelf-GenericFiltering
27 28 29
  PrintSelf-Geovis
  PrintSelf-Graphics
  PrintSelf-Hybrid
30
  PrintSelf-Imaging
31
  PrintSelf-Infovis
32
  PrintSelf-IO
33
  PrintSelf-Parallel
34
  PrintSelf-Rendering
35
  PrintSelf-Views
36 37 38
  PrintSelf-VolumeRendering
  PrintSelf-Widgets

39
  TestSetObjectMacro-Charts
40 41 42
  TestSetObjectMacro-Common
  TestSetObjectMacro-Filtering
  TestSetObjectMacro-GenericFiltering
43 44 45
  TestSetObjectMacro-Geovis
  TestSetObjectMacro-Graphics
  TestSetObjectMacro-Hybrid
46
  TestSetObjectMacro-Imaging
47
  TestSetObjectMacro-Infovis
48
  TestSetObjectMacro-IO
49
  TestSetObjectMacro-Parallel
50
  TestSetObjectMacro-Rendering
51
  TestSetObjectMacro-Views
52 53
  TestSetObjectMacro-VolumeRendering
  TestSetObjectMacro-Widgets
54

55 56 57 58
  # this one runs python which then runs two program so no memory checking there
  Sockets-image
  )

59 60 61 62 63
SET(CTEST_CUSTOM_WARNING_MATCH
  ${CTEST_CUSTOM_WARNING_MATCH}
  "{standard input}:[0-9][0-9]*: Warning: "
  )

64 65 66 67 68 69 70 71
# Removing this because it somehow matches normal build output lines
# on several platforms.  Perhaps there is a bug in the custom match
# support.
#
#  SET(CTEST_CUSTOM_ERROR_MATCH
#    ${CTEST_CUSTOM_ERROR_MATCH}
#    "\\", line [0-9]+, in "
#    )
72

73 74 75 76 77 78 79 80 81 82
IF("@CMAKE_SYSTEM@" MATCHES "OSF")
  SET(CTEST_CUSTOM_WARNING_EXCEPTION
    ${CTEST_CUSTOM_WARNING_EXCEPTION}
    "vtkKWApplication"
    "vtkKWObject"
    )
ENDIF("@CMAKE_SYSTEM@" MATCHES "OSF")

SET(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
83
  "Utilities/vtktiff/"
84
  "list.[0-9]+. : warning C4702: unreachable code"
85
  "xtree.[0-9]+. : warning C4702: unreachable code"
86
  "vector.[0-9]+. : warning C4702: unreachable code"
87
  "warning LNK4221"
88
  "math.h.[0-9]+.: warning C4211"
89 90 91 92
  "variable .var_args[2]*. is used before its value is set"
  "jobserver unavailable"
  "warning: \\(Long double usage is reported only once for each file"
  "warning: To disable this warning use"
93
  "warning: .+ might be clobbered by .longjmp. or .vfork."
94
  "(ranlib|libtool):.*file: .+ has no symbols"
95
  "could not be inlined"
96 97
  "ld: warning prebinding disabled because \\((__TEXT|__DATA|__LINKEDIT) segment \\(address = 0x[a-f0-9]+ size = 0x[a-f0-9]+\\) of (.*) overlaps with (__LINKEDIT|__TEXT|__DATA) segment \\(address = 0x[a-f0-9]+ size = 0x[a-f0-9]+\\) of (.*)"
  "ld: warning prebinding disabled because dependent library: (.*).dylib is not prebound"
98 99 100 101 102

  # MPI uses c++ but may have been built with a different c++ compiler.
  # It seems to work anyway so let's ignore it to make it easier to
  # test more compilers.
  "ld: warning: libstdc.*, needed by .*, may conflict with libstdc.*"
103 104 105

  # Does *anyone* have an STL implementation that compiles without warnings...?
  "cc-1116 CC: WARNING File = /usr/include/CC/stl_alloc.h, Line = 175"
106 107 108 109

  # vtkfreetype needs to be updated to get rid of warnings that occur during
  # 64-bit compiles... for now, mask them out of dashboard results:
  "vtkfreetype.*warning C4"
110
  "vtkfreetype.*warning: dereferencing type-punned pointer"
111 112 113
  "vtkfreetype.*warning: conversion to .* from .* may change the sign of the result"
  "vtkfreetype.*warning: passing argument .* of .* as .*signed due to prototype"
  "vtkfreetype.*warning: passing argument .* of .* with different width due to prototype"
114 115
  "vtkfreetype.*warning: conversion to .* from .* may alter its value"
  "vtkfreetype.*warning: conversion of unsigned constant value to negative integer"
116
  "vtkfreetype.*warning: suggest braces around empty body in 'do' statement"
117 118 119
  "vtkfreetype.*warning: negative integer implicitly converted to unsigned type"
  "vtkfreetype.*warning: dereferencing pointer .* does break strict-aliasing rules"
  "vtkfreetype.*note: initialized from here"
120 121
  "vtkfreetype.*warning: .* may be used uninitialized in this function"
  "vtkfreetype.*note: .* was declared here"
122
  "vtkfreetype/.*warning: .* set but not used"
123 124
  "vtkfreetype/.*warning: .* defined but not used"
  "WARNING: While resolving call to function .*FTC_GNode_Compare.* arguments were dropped!"
125 126
  # vtknetcdf occasionally has warnings for things that are not a problem.
  "vtknetcdf.*warning: dereferencing type-punned pointer"
127
  "vtknetcdf.*warning: passing argument .* of .* as .*signed due to prototype"
128
  "vtknetcdf.*warning: conversion to .* from .* may change the sign of the result"
129
  "vtknetcdf.*warning: conversion to .* from .* may alter its value"
130 131
  "vtknetcdf.*warning: dereferencing pointer .* does break strict-aliasing rules"
  "vtknetcdf.*note: initialized from here"
132 133 134 135
  # Some VTK dashboards include building bits of Qt which produce lots of
  # the following warnings when built with the MS compilers. Qt guys should
  # fix their code. Until they do, keep the Qt chatter off the VTK dashboard
  # results:
136
  "[Qq]t([Cc]ore|[Gg]ui).*warning C4127: conditional expression is constant"
137
  "[Qq]t.*h.*warning.*declaration of .* shadows a member of .this"
138
  "[Qq]t.*h.*warning.*(copy constructor|assignment operator) could not be generated"
139
  # gcc -Wstric-aliasing
140 141
  "[Qq]t.*q.*h.*warning: dereferencing pointer .* does break strict-aliasing rules"
  "[Qq]t.*q.*h.*note: initialized from here"
142
  "[Qq]t.*ui_"
143

144 145 146
  # Specifically for HP compiler, mask out
  "Utilities.(vtkjpeg|vtksqlite).*warning.*more strictly aligned type"
  "Filtering.vtkImageMultiple(Input|InputOutput)Filter.cxx.*warning.*more strictly aligned type"
147
  "IO.vtkJPEG(Reader|Writer).cxx.*warning.*more strictly aligned type"
148 149
  ".*warning.*relational operator.*always evaluates to.*"
  ".*warning.*controlling expression is constant"
Dave Partyka's avatar
Dave Partyka committed
150
  "[Qq]t.*h.*warning.*types cannot be declared in anonymous unions"
151

152 153
  # QT on HP-UX uses -ldl while VTK uses -dldl.
  "aCC: warning 983: The -ldl library specified on the command line is also added automatically by the compiler driver."
154 155 156

  # This test is made to discover compiler warnings, therefore the emitted
  # warnings are irrelevant in a dashboard submission
Francois Bertel's avatar
Francois Bertel committed
157
  "TestCxxFeatures.cxx.*warning.*type qualifiers ignored on function return type"
158

159 160 161 162
  # File generated by lex/yacc flex/bison, cannot fix the warnings.
  "vtkParse.y.*passing argument 1 of 'preSig' discards qualifiers from pointer target type"
  "vtkParse.y.*passing argument 1 of 'postSig' discards qualifiers from pointer target type"
  "vtkParse.l.*warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result"
Francois Bertel's avatar
Francois Bertel committed
163
  "vtkParse.l.*warning: passing argument .* of .* as .* due to prototype"
164
  "lex.yy.c.*warning: passing argument .* of .* as .* due to prototype"
Francois Bertel's avatar
Francois Bertel committed
165

Brad King's avatar
Brad King committed
166
  # Java lint warnings
167 168
  "Note: .* uses? or overrides a deprecated API"
  "Note: .* uses? unchecked or unsafe operations"
Brad King's avatar
Brad King committed
169
  "Note: Recompile with -Xlint:.* for details"
170

171
  # warnings from some Open MPI headers/libs, cannot fix:
172
  "/openmpi/.*request_inln.h.*warning: declaration .struct MPI::Grequest_intercept_t. does not declare anything"
173
  "openmpi.*comm_inln.h.*warning: unused parameter"
174 175 176

  # warnings from some python headers/libs, cannot fix:
  "warning: the use of .tmpnam_r. is dangerous, better use .mkstemp."
177
  "warning: the use of .tempnam. is dangerous, better use .mkstemp."
178
  "pyconfig.h.*warning: ._XOPEN_SOURCE. redefined"
179
  "features.h.*warning: this is the location of the previous definition"
180

181
  # Mask out warnings on Utilities libraries vtkexpat,vtksqlite,vtklibproj4,
182
  # vtkzlib, DICOMParser
183 184 185 186 187 188
  "Utilities.vtkexpat.*warning.*assignment discards qualifiers from pointer target type"
  "Utilities.vtkexpat.*warning: passing argument .* of .* as unsigned due to prototype"
  "Utilities.vtkexpat.*warning: passing argument .* of .* with different width due to prototype"
  "Utilities.vtkexpat.*warning: conversion to .* from .* may change the sign of the result"
  "Utilities.vtkexpat.*warning: conversion to .* from .* may alter its value"
  "Utilities.vtkexpat.*warning: passing argument .* of .* with different width due to prototype"
189
  "Utilities.vtkexpat.*warning: negative integer implicitly converted to unsigned type"
Francois Bertel's avatar
Francois Bertel committed
190
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning.*assignment discards qualifiers from pointer target type"
191 192
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning.*initialization discards qualifiers from pointer target type"
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning.*passing argument .* of .* discards qualifiers from pointer target type"
193
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning.*ignoring return value of .*, declared with attribute warn_unused_result"
194 195
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning.*passing argument .* of .* with different width due to prototype"
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning.*passing argument .* of .* as .*signed due to prototype"
196
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning.*[Ll]ong.double"
197 198
  # gcc -Wsign-conversion
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning: conversion to .* from .* may change the sign of the result"
199 200
 # gcc -Wsign-conversion
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning: conversion of unsigned constant value to negative integer"
201 202
  # gcc -Wconversion
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning: conversion to .* from .* may alter its value"
203
  # SunOS CC 5.6
204
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning: statement not reached"
205
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning: integer overflow detected: op .*"
206
  "Utilities.vtksqlite.vtk_sqlite3.c.*note: expected .* but argument is of type .*"
207
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning: negative integer implicitly converted to unsigned type"
208
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning: assuming signed overflow"
209
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning: .* may be used uninitialized in this function"
210
  "Utilities.vtksqlite.vtk_sqlite3.c.*warning: .* set but not used"
211 212
  "Utilities.vtkexodus2.*warning.*assignment discards qualifiers from pointer target type"
  "Utilities.vtkexodus2.*warning.*initialization discards qualifiers from pointer target type"
Francois Bertel's avatar
Francois Bertel committed
213
  "Utilities.vtkexodus2.*warning.*assignment discards qualifiers from pointer target type"
214
  "Utilities.vtkexodus2.*warning.*passing argument .* of .* as unsigned due to prototype"
215
  "Utilities.vtkexodus2.*warning.*possible loss of data"
216
  "Uitilties/vtkexodus2.*warning: .* set but not used"
217 218 219 220
  # gcc -Wsign-conversion
  "Utilities.vtkexodus2.*warning.*conversion to .* from .* may change the sign of the result"
  # gcc -Wconversion
  "Utilities.vtkexodus2.*warning.*conversion to .* from .* may alter its value"
221 222 223 224
  # gcc -Wuninitialized
  "Utilities.vtkexodus2.*warning: .* may be used uninitialized in this function"
  "Utilities.vtkexodus2.*warning: return discards qualifiers from pointer target type"

225
  # VPIC has endianness checks that are fragile, suppress warnings generated by them for now
226
  "Utilities.VPIC.*warning"
227 228


229 230 231 232 233 234
  #boost
  "boost.*warning.*assignment operator could not be generated"
  "boost.*warning.*type name first seen using .* now seen using .*"
  "boost.*warning.*default constructor could not be generated"
  "boost.*warning.*can never be instantiated - user defined constructor required"
  "boost.*warning.*unreferenced formal parameter"
235 236
  "boost.*warning.*signed/unsigned mismatch"
  "boost.*warning.*conversion from .* to .*, possible loss of data"
237
  "boost.*warning.*declaration of .* shadows a member of"
238 239
  "boost.*warning.*unused parameter"
  "boost.*warning.*comparison between signed and unsigned integer expressions"
240

241
  "Utilities.vtklibproj4.*warning.*defined but not used"
242
  "Utilities.vtklibproj4.*warning.*initialization discards qualifiers from pointer target type"
243 244
  "Utilities.vtklibproj4.*warning.*assignment discards qualifiers from pointer target type"
  "Utilities.vtklibproj4.*warning.*passing argument .* of .* discards qualifiers from pointer target type"
245
  "Utilities.vtklibproj4.*warning.*ignoring return value of .*, declared with attribute warn_unused_result"
246
  "Utilities.vtklibproj4.*warning.*passing argument .* of .* as .*signed due to prototype"
247
  "Utilities.vtklibproj4.*warning.*conversion to .* from .* may change the sign of the result"
248
  "Utilities.vtklibproj4.*note: expected .* but argument is of type .*"
249 250 251
  "Utilities.vtkzlib.*warning: conversion to .* from .* may change the sign of the result"
  "Utilities.vtkzlib.*warning: conversion to .* from .* may alter its value"
  "Utilities.vtkzlib.*warning: passing argument .* of .* as unsigned due to prototype"
Francois Bertel's avatar
Francois Bertel committed
252
  "Utilities.vtkpng.*warning: passing argument .* of .* as unsigned due to prototype"
253 254
  "Utilities.vtkpng.*warning: conversion to .* from .* may change the sign of the result"
  "Utilities.vtkpng.*warning: conversion to .* from .* may alter its value"
255
  "Utilities.vtkpng.pngwutil.c.*warning: passing argument 2 of .vtk_png_write_chunk_start. discards qualifiers from pointer target type"
256
  "Utilities.vtkpng.*warning: negative integer implicitly converted to unsigned type"
257
  "Utilities.vtkpng.*warning: variable .* might be clobbered by"
258 259
  "Utilities/vtkjpeg.*warning: conversion to .* from .* may change the sign of the result"
  "Utilities/vtkjpeg.*warning: conversion to .* from .* may alter its value"
260
  "Utilities/vtkjpeg.*.warning: .* set but not used"
261 262
  "Utilities/DICOMParser.*warning: conversion to .* from .* may alter its value"
  "Utilities/DICOMParser.*warning: conversion to .* from .* may change the sign of the result"
263 264 265 266
  # gcc -Wsign-conversion
  "Utilities/vtkmetaio.*warning: conversion to '.*' from '.*' may change the sign of the result"
  # gcc -Wconversion
  "Utilities/vtkmetaio.*warning: conversion to '.*' from '.*' may alter its value"
267
  "Uitilties/vtkmetaio/.*warning: .* set but not used"
268 269
  # gcc -Wsign-conversion
  "Utilities/vtkalglib.*warning: conversion to .* from .* may change the sign of the result"
270
  "Uitilties/vtkalglib/.*warning: .* set but not used"
271 272 273 274
  # gcc -Wsign-conversion
  "Utilities/ftgl/src/.*warning: conversion to .* from .* may change the sign of the result"
  # gcc -Wconversion
  "Utilities/ftgl/src/.*warning: conversion to .* from .* may alter its value"
Jeff Baumes's avatar
Jeff Baumes committed
275 276
  # Sun cc5.6 - the code is designed to trigger an overflow
  "Utilities/vtksqlite/vtk_sqlite.c.*warning: integer overflow detected"
Jeff Baumes's avatar
Jeff Baumes committed
277 278
  # bogus unreachable code warning in hashtable in kwsys
  "hashtable.hxx.*warning C4702: unreachable code"
279 280 281

  # gcc -Wsign-conversion
  "Utilities/mrmpi/.*warning: conversion to .* from .* may change the sign of the result"
282 283
  # gcc -Wunused-result
  "Utilities/mrmpi/.*warning: ignoring return value of .size_t fread.void.. size_t. size_t. FILE.... declared with attribute warn_unused_result"
284 285

  "Uitilties/vtklibproj4/.*warning: .* set but not used"
286
  )
287

288 289 290 291
IF(APPLE)
SET(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
  "warning -.: directory name .* does not exist"
292
  "OpenTransport.*warning.*is deprecated"
293

294 295
  # Somebody will have to get rid of these calls eventually (bug 4001) to
  # eliminate these warnings. For now, mask them out of dashboard results:
296
  "vtkCarbonRenderWindow.cxx.*warning: .(New|Diff|Equal|Dispose)Rgn. is deprecated"
297
  )
298
ENDIF(APPLE)
299

300
SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
Andy Cedilnik's avatar
Andy Cedilnik committed
301
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
302
  "vtk.*TCLInit.cxx"
303
  "vtk[^\\.]+(Java|Python|Tcl).cxx"
304
  ".*vtkOpenGLState.*" # debugging class
305
  ".*Testing.Cxx.*cxx"
306
  ".*Testing.Cxx.*h"
307
  ".*moc_.*cxx"
308 309 310

  # Exclude files from the Utilities directories
  ".*/Utilities/.*"
311
  )
312

313
IF(@CMAKE_COMPILER_IS_GNUCXX@)
314 315 316 317 318 319
SET(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
  # GCC 4.2 has a bug where it has Unnecessary anonymous namespace warnings
  # you can find the full bug on GNU Bugzilla with bug number 29365
  "warning: .* has a field .* whose type uses the anonymous namespace"
  )
320
ENDIF(@CMAKE_COMPILER_IS_GNUCXX@)
321

322 323 324 325
# Temporarily: to show us *all* the remaining warnings on the
# 64-bit Windows builds on one result page...
#
SET(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 222)