CTestCustom.cmake.in 3.81 KB
Newer Older
1
set(CTEST_CUSTOM_ERROR_MATCH
2 3 4
  ${CTEST_CUSTOM_ERROR_MATCH}
  "ERROR:")

5
set(CTEST_CUSTOM_WARNING_EXCEPTION
6 7 8
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
  "xtree.[0-9]+. : warning C4702: unreachable code"
  "warning LNK4221"
9
  "warning LNK4204" # Occurs by race condition with objects in small libs
10 11 12 13 14 15 16 17 18
  "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"
  "could not be inlined"
  "libcmcurl.*has no symbols"
  "not sorted slower link editing will result"
  "stl_deque.h:479"
  "Utilities.cmzlib."
Bill Hoffman's avatar
Bill Hoffman committed
19
  "Utilities.cmbzip2."
20
  "Source.CTest.Curl"
21
  "Source.CursesDialog.form"
22
  "Source.cm_sha2.*warning.*cast increases required alignment of target type"
23
  "Utilities.cmcurl"
24
  "Utilities.cmexpat."
25
  "Utilities.cmlibarchive"
26
  "/usr/include.*warning.*shadowed declaration is here"
27 28 29 30 31
  "/usr/bin/ld.*warning.*-..*directory.name.*bin.*does not exist"
  "Redeclaration of .send..... with a different storage class specifier"
  "is not used for resolving any symbol"
  "Clock skew detected"
  "remark\\(1209"
32
  "remark: .*LOOP WAS VECTORIZED"
33
  "warning .980: wrong number of actual arguments to intrinsic function .std::basic_"
34
  "LINK : warning LNK4089: all references to.*ADVAPI32.dll.*discarded by /OPT:REF"
35
  "LINK : warning LNK4089: all references to.*PSAPI.DLL.*discarded by /OPT:REF"
36
  "LINK : warning LNK4089: all references to.*SHELL32.dll.*discarded by /OPT:REF"
37
  "LINK : warning LNK4089: all references to.*USER32.dll.*discarded by /OPT:REF"
38 39 40
  "Warning: library was too large for page size.*"
  "Warning: public.*_archive_.*in module.*archive_*clashes with prior module.*archive_.*"
  "Warning: public.*BZ2_bz.*in module.*bzlib.*clashes with prior module.*bzlib.*"
41
  "Warning: public.*_archive.*clashes with prior module.*"
42
  "Warning: LINN32: Last line.*is less.*"
43 44
  "Warning: Olimit was exceeded on function.*"
  "Warning: To override Olimit for all functions in file.*"
45
  "warning.*directory name.*CMake-Xcode.*/bin/.*does not exist.*"
46
  "stl_deque.h:1051"
47
  "(Lexer|Parser).*warning.*conversion.*may (alter its value|change the sign)"
48
  "(Lexer|Parser).*warning.*(statement is unreachable|will never be executed)"
49
  "PGC-W-0095-Type cast required for this conversion.*ProcessUNIX.c"
50
  "[Qq]t([Cc]ore|[Gg]ui|[Ww]idgets).*warning.*conversion.*may alter its value"
51 52
  "warning:.*is.*very unsafe.*consider using.*"
  "warning:.*is.*misused, please use.*"
53
  "CMakeSetupManifest.xml.*manifest authoring warning.*Unrecognized Element"
54
  "cc-3968 CC: WARNING File.*" # "implicit" truncation by static_cast
55
  "ld: warning: directory not found for option .-(F|L)"
56
  "warning.*This version of Mac OS X is unsupported"
57
  "clang.*: warning: argument unused during compilation: .-g"
58
  "note: in expansion of macro" # diagnostic context note
59 60
  "cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*rand.*isn.*t random" # we do not do crypto
  "cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*srand.*seed choices are.*poor" # we do not do crypto
61 62 63 64

  # Ignore clang's summary warning, assuming prior text has matched some
  # other warning expression:
  "[0-9,]+ warnings? generated."
65 66
  )

67 68
if(NOT "@CMAKE_GENERATOR@" MATCHES "Xcode")
  set(CTEST_CUSTOM_COVERAGE_EXCLUDE
69 70 71
    ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
    "XCode"
    )
72
endif ()
73

74 75
if(NOT "@CMAKE_GENERATOR@" MATCHES "KDevelop")
  set(CTEST_CUSTOM_COVERAGE_EXCLUDE
76 77 78
    ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
    "Kdevelop"
    )
79
endif ()
80

81
set(CTEST_CUSTOM_COVERAGE_EXCLUDE
82 83 84 85 86 87 88 89
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}

  # Exclude kwsys files from coverage results. They are reported
  # (with better coverage results) on kwsys dashboards...
  "/Source/(cm|kw)sys/"

  # Exclude try_compile sources from coverage results:
  "/CMakeFiles/CMakeTmp/"
90 91 92

  # Exclude Qt source files from coverage results:
  "[A-Za-z]./[Qq]t/qt-.+-opensource-src"
93
  )