packaging: Initial packaging
[platform/upstream/cmake.git] / CTestCustom.cmake.in
1 set(CTEST_CUSTOM_ERROR_MATCH
2   ${CTEST_CUSTOM_ERROR_MATCH}
3   "ERROR:")
4
5 set(CTEST_CUSTOM_WARNING_EXCEPTION
6   ${CTEST_CUSTOM_WARNING_EXCEPTION}
7   "xtree.[0-9]+. : warning C4702: unreachable code"
8   "warning LNK4221"
9   "warning LNK4204" # Occurs by race condition with objects in small libs
10   "variable .var_args[2]*. is used before its value is set"
11   "jobserver unavailable"
12   "warning: \\(Long double usage is reported only once for each file"
13   "warning: To disable this warning use"
14   "could not be inlined"
15   "libcmcurl.*has no symbols"
16   "not sorted slower link editing will result"
17   "stl_deque.h:479"
18   "Utilities.cmzlib."
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   "/usr/bin/ld.*warning.*-..*directory.name.*bin.*does not exist"
27   "Redeclaration of .send..... with a different storage class specifier"
28   "is not used for resolving any symbol"
29   "Clock skew detected"
30   "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.*USER32.dll.*discarded by /OPT:REF"
36   "Warning: library was too large for page size.*"
37   "Warning: public.*_archive_.*in module.*archive_*clashes with prior module.*archive_.*"
38   "Warning: public.*BZ2_bz.*in module.*bzlib.*clashes with prior module.*bzlib.*"
39   "Warning: public.*_archive.*clashes with prior module.*"
40   "Warning: LINN32: Last line.*is less.*"
41   "warning.*directory name.*CMake-Xcode.*/bin/.*does not exist.*"
42   "stl_deque.h:1051"
43   "(Lexer|Parser).*warning.*conversion.*may (alter its value|change the sign)"
44   "(Lexer|Parser).*warning.*statement is unreachable"
45   "PGC-W-0095-Type cast required for this conversion.*ProcessUNIX.c"
46   "[Qq]t([Cc]ore|[Gg]ui).*warning.*conversion.*may alter its value"
47   "warning:.*is.*very unsafe.*consider using.*"
48   "warning:.*is.*misused, please use.*"
49   "CMakeSetupManifest.xml.*manifest authoring warning.*Unrecognized Element"
50   "cc-3968 CC: WARNING File.*" # "implicit" truncation by static_cast
51   "ld: warning: directory not found for option .-(F|L)"
52   "warning.*This version of Mac OS X is unsupported"
53   "clang.*: warning: argument unused during compilation: .-g"
54
55   # Ignore clang's summary warning, assuming prior text has matched some
56   # other warning expression:
57   "[0-9,]+ warnings? generated."
58   )
59
60 if(NOT "@CMAKE_GENERATOR@" MATCHES "Xcode")
61   set(CTEST_CUSTOM_COVERAGE_EXCLUDE
62     ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
63     "XCode"
64     )
65 endif ()
66
67 if(NOT "@CMAKE_GENERATOR@" MATCHES "KDevelop")
68   set(CTEST_CUSTOM_COVERAGE_EXCLUDE
69     ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
70     "Kdevelop"
71     )
72 endif ()
73
74 set(CTEST_CUSTOM_COVERAGE_EXCLUDE
75   ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
76
77   # Exclude kwsys files from coverage results. They are reported
78   # (with better coverage results) on kwsys dashboards...
79   "/Source/(cm|kw)sys/"
80
81   # Exclude try_compile sources from coverage results:
82   "/CMakeFiles/CMakeTmp/"
83
84   # Exclude Qt source files from coverage results:
85   "[A-Za-z]./[Qq]t/qt-.+-opensource-src"
86   )