-
Notifications
You must be signed in to change notification settings - Fork 104
/
CTestCustom.cmake
143 lines (124 loc) · 5.17 KB
/
CTestCustom.cmake
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
##############################################################################
# Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH #
# Copyright (C) 2019-2024 Members of R3B Collaboration #
# #
# This software is distributed under the terms of the #
# GNU General Public Licence (GPL) version 3, #
# copied verbatim in the file "LICENSE". #
# #
# In applying this license GSI does not waive the privileges and immunities #
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
##############################################################################
# -*- mode: cmake -*-
# -----------------------------------------------------------
# -- 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_WARNING_EXCEPTION
${CTEST_CUSTOM_WARNING_EXCEPTION}
# -- CLHEP and Pluto warnings
"/include/CLHEP/"
"PParticle.h"
"PDataBase.h"
"PMesh.h"
"PStaticData.h"
"PUtils.h"
# -- warnings from ubuntu systems which are a little to much
# -- probably defined warn-unused-result. ignoring the result
# -- of fgets is common practice. A work around would be to
# -- store the return value in a dummy variable
"ignoring return value of 'char* fgets(char*, int, FILE*)'"
"ignoring return value of 'char* fscanf(char*, int, FILE*)'"
# -- boost warnings
"/include/boost/exception/exception.hpp:"
"/include/boost/smart_ptr/detail/sp_convertible.hpp:"
"/include/boost/smart_ptr/shared_ptr.hpp:"
"/include/boost"
# -- Root warnings when installed in installation dir
"/include/root/"
# -- Root warnings which should not show up in the test setup
"/include/G__ci.h:"
"/include/TAttImage.h:"
"/include/TBuffer.h"
"/include/TChainElement.h"
"/include/TCollectionProxyInfo.h"
"/include/TCut.h:"
"/include/TEveBoxSet.h:"
"/include/TEveTrackPropagator.h:"
"/include/TEveTrackPropagator.h:"
"/include/TEveVector.h:"
"/include/TFcnAdapter.h:"
"/include/TFitterMinuit.h:"
"/include/TGeoMatrix.h:"
"/include/TGeoPainter.h:"
"/include/TGDMLParse.h"
"/include/TList.h:"
"/include/TMap.h:"
"/include/TMatrixT.h:"
"/include/TMatrixTSym.h:"
"/include/TMemberInspector.h:"
"/include/TObjArray.h:"
"/include/TRefArray.h:"
"/include/TString.h"
"/include/Minuit2/BasicFunctionGradient.h:"
"/include/Minuit2/MnUserParameterState.h:"
"/include/Minuit2/StackAllocator.h:"
"/include/TMVA/ClassInfo.h:"
"/include/TMVA/Config.h:"
"/include/TMVA/Configurable.h:"
"/include/TMVA/DataInputHandler.h:"
"/include/TMVA/DataSet.h:"
"/include/TMVA/DataSetInfo.h:"
"/include/TMVA/DataSetManager.h:"
"/include/TMVA/Event.h:"
"/include/TMVA/Factory.h:"
"/include/TMVA/KDEKernel.h:"
"/include/TMVA/Option.h:"
"/include/TMVA/PDF.h:"
"/include/TMVA/Reader.h:"
"/include/TMVA/Types.h:"
# -- Geant3 warnings
"/geant3/TGeant3/TGeant3.h:"
"/geant3/TGeant3/TGeant3TGeo.h:"
# -- Errors which are filtered for the time being
# -- MbsAPI is only a copy from elsewhere so don't know what to do
# -- FairTSBufferFunctional.h has to be fixed by Tobias
"MbsAPI"
"FairTSBufferFunctional.h"
# filter warnings from generated files
"FairTestDetectorPayloadDigi_generated.h"
"FairTestDetectorPayloadHit_generated.h"
"FairTestDetectorPayload.pb"
"MyPayload.pb"
"G__.*Dict"
# filter warnings from internal gtest headers
"gtest/internal"
"gtest/gtest-test-part.h"
"gtest/gtest.h"
)
# -----------------------------------------------------------
# -- Warning addon's
# -----------------------------------------------------------
set(CTEST_CUSTOM_WARNING_MATCH ${CTEST_CUSTOM_WARNING_MATCH}
)
Set (CTEST_CUSTOM_COVERAGE_EXCLUDE
".*Dict.h"
".*Dict.cxx"
"_.*"
)
# -----------------------------------------------------------
# -- Error execptions
# -- Get rid of boost warnings which are misinterpreted as errors
# -----------------------------------------------------------
Set(CTEST_CUSTOM_ERROR_EXCEPTION
${CTEST_CUSTOM_ERROR_EXCEPTION}
"/include/boost/"
)