CTestCustom.cmake 3.38 KB
Newer Older
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
# -*- mode: cmake -*-

message(" -- Read CTestCustom.cmake --")

# Maximum size of uploaded test output of failed tests is 100kB
# Larger output is cutted
set(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE "102400")

# Maximum size of uploaded test output of passed tests is 1kB
# Larger output is cutted
set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE "1024")

# -----------------------------------------------------------
# -- Number of warnings to display
# -----------------------------------------------------------

set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS "500" )

# -----------------------------------------------------------
# -- Number of errors to display
# -----------------------------------------------------------

set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS   "50" )

# -----------------------------------------------------------
# -- Warning execptions
# -----------------------------------------------------------

Set(CTEST_CUSTOM_ERROR_EXCEPTION
    ${CTEST_CUSTOM_ERROR_EXCEPTION}
    "/include/boost"
    "/boost/include"
    "/include/root"
    "/root/include"
    "boost::"
)

set(CTEST_CUSTOM_WARNING_EXCEPTION
	${CTEST_CUSTOM_WARNING_EXCEPTION}

        "Dict.cxx"

        # -- warnings from our external packages
        "external/flib_dpb"
        "external/ipc" 
Administrator's avatar
Administrator committed
46
        "maybe_unused"
Administrator's avatar
Administrator committed
47
        "include/AnalysisTree"
48
49

        # -- remove intended fall through warnings
Administrator's avatar
Administrator committed
50
51
        "[[fallthrough]]"
        "CbmMcbm2018UnpackerAlgoTof.cxx.*warning: attributes at the beginning of statement are ignored" 
52
53
        "CbmMcbm2018UnpackerAlgoTof.cxx.*warning: this statement may fall through"
        "CbmMcbm2018UnpackerAlgoTof.cxx.*note: here"
Administrator's avatar
Administrator committed
54
        "CbmDeviceUnpackTofMcbm2018.cxx.*warning: attributes at the beginning of statement are ignored"
55
56
        "CbmDeviceUnpackTofMcbm2018.cxx.*warning: this statement may fall through"
        "CbmDeviceUnpackTofMcbm2018.cxx.*note: here"
Administrator's avatar
Administrator committed
57
58
59
60
61
62
63
64
65
        "CbmMcbm2018TofPar.cxx.*warning: attributes at the beginning of statement are ignored"
        "CbmMcbm2018TofPar.cxx.*warning: this statement may fall through"
        "CbmMcbm2018TofPar.cxx.*note: here"

        # -- warnings from a feature we want and which is okay
        "CbmCheckEvents.cxx:86:52"

        # -- warnings about to long function for debugging
        "variable tracking size limit exceeded"
66
67
68
69
70
71
72
73
74
75

        # -- warnings from structures for HADAQ memory casting
        "struct hadaq::HadTu"
        "struct hadaq::HadTuId"
        "TrbBridgeTrbNetHeaders.hpp"
        "TrbBridgeTrbNetHeaders.cpp"
        
        # -- warnings from structures for MBS/LMD memory casting
        "struct mbs::Header"

Administrator's avatar
Administrator committed
76
77
78
        # -- warnings from macosx test machines
        "ld: warning: dylib.*was built for newer macOS version.*than being linked"
        ".*^.*"
79
80
81

        # -- don't show pragma message warnings
        "Compiling CBM Configuration"
Administrator's avatar
Administrator committed
82
83
84

        # -- filter warnings about unused attributes
        "attribute directive ignored"
85
86
87
88
89
90
91
92
93
94
95
96
97
98
  )

# -----------------------------------------------------------
# -- Warning addon's
# -----------------------------------------------------------
set(CTEST_CUSTOM_WARNING_MATCH	${CTEST_CUSTOM_WARNING_MATCH}
	)


Set (CTEST_CUSTOM_COVERAGE_EXCLUDE 
     ".*Dict.h"
     ".*Dict.cxx"
     ".*Fair.*"
     ".*GTest.*"
Administrator's avatar
Administrator committed
99
     ".*external/.*"
100
101
102
103
104
105
106
    )

Set(CTEST_CUSTOM_ERROR_EXCEPTION
    ${CTEST_CUSTOM_ERROR_EXCEPTION}
    # -- warnings from my test machine demac006
    "warning: text-based stub file"
   )