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
144
145
146
147
148
149
150
151
152
153
|
# Unit test configuration file for MessageLogger service: reportEverys
# testing overall defaults regarding reportEverys
# overall defaults for all destinations, for unnamed categories -- u11_overall_unnamed
# overall defaults for all destinations, specific category -- u11_overall_specific
# testing reportEverys
# default reportEvery for a destination superceding overall default -- u11_supercede_specific
# default reportEvery for a destination not superceding specific category overall default -- u11_non_supercede_common
# reportEvery for specific category superceding both defaults -- u11_specific
# In the course of this, these cases also test reportEverys and limits interacting with each other
import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
import FWCore.Framework.test.cmsExceptionsFatal_cff
process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
process.load("FWCore.MessageService.test.Services_cff")
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
default = cms.untracked.PSet(
expect_specific = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
noTimeStamps = cms.untracked.bool(True),
FwkReport = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
reportEvery = cms.untracked.int32(5),
expect_supercede_specific = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
int7bycommondefault = cms.untracked.PSet(
reportEvery = cms.untracked.int32(7),
limit = cms.untracked.int32(-1)
),
expect_non_supercede_common_specific = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
FwkTest = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
int25bydefaults = cms.untracked.PSet(
reportEvery = cms.untracked.int32(25),
limit = cms.untracked.int32(-1)
),
expect_overall_unnamed = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
expect_overall_specific = cms.untracked.PSet(
limit = cms.untracked.int32(0)
)
),
files = cms.untracked.PSet(
u11_supercede_specific = cms.untracked.PSet(
default = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
int4bydefault = cms.untracked.PSet(
reportEvery = cms.untracked.int32(10),
limit = cms.untracked.int32(-1)
),
expect_supercede_specific = cms.untracked.PSet(
reportEvery = cms.untracked.int32(1),
limit = cms.untracked.int32(-1)
),
int25bydefaults = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
int7bycommondefault = cms.untracked.PSet(
limit = cms.untracked.int32(0)
)
),
u11_overall_specific = cms.untracked.PSet(
default = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
int4bydefault = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
expect_overall_specific = cms.untracked.PSet(
reportEvery = cms.untracked.int32(1),
limit = cms.untracked.int32(-1)
),
int25bydefaults = cms.untracked.PSet(
limit = cms.untracked.int32(0)
)
),
u11_non_supercede_common = cms.untracked.PSet(
int4bydefault = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
expect_non_supercede_common_specific = cms.untracked.PSet(
reportEvery = cms.untracked.int32(1),
limit = cms.untracked.int32(-1)
),
default = cms.untracked.PSet(
reportEvery = cms.untracked.int32(18),
limit = cms.untracked.int32(3)
),
int25bydefaults = cms.untracked.PSet(
limit = cms.untracked.int32(0)
)
),
u11_specific = cms.untracked.PSet(
int4bydefault = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
expect_specific = cms.untracked.PSet(
reportEvery = cms.untracked.int32(1),
limit = cms.untracked.int32(-1)
),
noTimeStamps = cms.untracked.bool(True),
default = cms.untracked.PSet(
reportEvery = cms.untracked.int32(30)
),
int25bydefaults = cms.untracked.PSet(
reportEvery = cms.untracked.int32(12)
),
int7bycommondefault = cms.untracked.PSet(
limit = cms.untracked.int32(0)
)
),
u11_overall_unnamed = cms.untracked.PSet(
int4bydefault = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
int25bydefaults = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
int7bycommondefault = cms.untracked.PSet(
limit = cms.untracked.int32(0)
),
expect_overall_unnamed = cms.untracked.PSet(
reportEvery = cms.untracked.int32(1),
limit = cms.untracked.int32(-1)
)
)
)
)
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)
process.source = cms.Source("EmptySource")
process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_F")
process.p = cms.Path(process.sendSomeMessages)
|