CTestCustom.cmake.in 3.44 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
  "Utilities.cmcurl"
23
  "Utilities.cmexpat."
24
  "Utilities.cmlibarchive"
25
  "/usr/include.*warning.*shadowed declaration is here"
26 27 28 29 30
  "/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"
31
  "remark: .*LOOP WAS VECTORIZED"
32
  "warning .980: wrong number of actual arguments to intrinsic function .std::basic_"
33
  "LINK : warning LNK4089: all references to.*ADVAPI32.dll.*discarded by /OPT:REF"
34
  "LINK : warning LNK4089: all references to.*PSAPI.DLL.*discarded by /OPT:REF"
35
  "LINK : warning LNK4089: all references to.*SHELL32.dll.*discarded by /OPT:REF"
36
  "LINK : warning LNK4089: all references to.*USER32.dll.*discarded by /OPT:REF"
37 38 39
  "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.*"
40
  "Warning: public.*_archive.*clashes with prior module.*"
41
  "Warning: LINN32: Last line.*is less.*"
42 43
  "Warning: Olimit was exceeded on function.*"
  "Warning: To override Olimit for all functions in file.*"
44
  "warning.*directory name.*CMake-Xcode.*/bin/.*does not exist.*"
45
  "stl_deque.h:1051"
46
  "(Lexer|Parser).*warning.*conversion.*may (alter its value|change the sign)"
47 48
  "(Lexer|Parser).*warning.*statement is unreachable"
  "PGC-W-0095-Type cast required for this conversion.*ProcessUNIX.c"
49
  "[Qq]t([Cc]ore|[Gg]ui).*warning.*conversion.*may alter its value"
50 51
  "warning:.*is.*very unsafe.*consider using.*"
  "warning:.*is.*misused, please use.*"
52
  "CMakeSetupManifest.xml.*manifest authoring warning.*Unrecognized Element"
Brad King's avatar
Brad King committed
53
  "cc-3968 CC: WARNING File.*" # "implicit" truncation by static_cast
54
  "ld: warning: directory not found for option .-(F|L)"
55
  "warning.*This version of Mac OS X is unsupported"
56
  "clang.*: warning: argument unused during compilation: .-g"
57 58 59 60

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

63 64
if(NOT "@CMAKE_GENERATOR@" MATCHES "Xcode")
  set(CTEST_CUSTOM_COVERAGE_EXCLUDE
65 66 67
    ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
    "XCode"
    )
68
endif ()
69

70 71
if(NOT "@CMAKE_GENERATOR@" MATCHES "KDevelop")
  set(CTEST_CUSTOM_COVERAGE_EXCLUDE
72 73 74
    ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
    "Kdevelop"
    )
75
endif ()
76

77
set(CTEST_CUSTOM_COVERAGE_EXCLUDE
78 79 80 81 82 83 84 85
  ${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/"
86 87 88

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