Line Code
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
# Unit test configuration file for MessageLogger service: defaults and limits
# testing overall defaults
#   overall default of no time stamps
#   overall defaults for all destinations, for unnamed categories                     -- u8_overall_unnamed
#   overall defaults for all destinations, specific category                          -- u8_overall_specific
# testing limits
#   default limit for a destination superceding overall default                       -- u8_supercede_specific   
#   default limit for a destination not superceding specific category overall default -- u8_non_supercede_common
#   limit for specific category superceding both defaults                             -- u8_specific

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),
        expect_overall_specific = cms.untracked.PSet(
            limit = cms.untracked.int32(0)
        ),
        lim2bycommondefault = cms.untracked.PSet(
            limit = cms.untracked.int32(2)
        ),
        lim0bydefaults = cms.untracked.PSet(
            limit = cms.untracked.int32(0)
        ),
        expect_supercede_specific = cms.untracked.PSet(
            limit = cms.untracked.int32(0)
        ),
        expect_non_supercede_common_specific = cms.untracked.PSet(
            limit = cms.untracked.int32(0)
        ),
        FwkTest = cms.untracked.PSet(
            limit = cms.untracked.int32(0)
        ),
        limit = cms.untracked.int32(5),
        expect_overall_unnamed = cms.untracked.PSet(
            limit = cms.untracked.int32(0)
        )
    ),
    files = cms.untracked.PSet(
        u8_non_supercede_common = cms.untracked.PSet(
            default = cms.untracked.PSet(
                limit = cms.untracked.int32(0)
            ),
            expect_non_supercede_common_specific = cms.untracked.PSet(
                limit = cms.untracked.int32(-1)
            ),
            noTimeStamps = cms.untracked.bool(True)
        ),
        u8_supercede_specific = cms.untracked.PSet(
            default = cms.untracked.PSet(
                limit = cms.untracked.int32(0)
            ),
            lim2bycommondefault = cms.untracked.PSet(
                limit = cms.untracked.int32(8)
            ),
            noTimeStamps = cms.untracked.bool(True),
            expect_supercede_specific = cms.untracked.PSet(
                limit = cms.untracked.int32(-1)
            )
        ),
        u8_overall_unnamed = cms.untracked.PSet(
            lim3bydefault = cms.untracked.PSet(
                limit = cms.untracked.int32(0)
            ),
            noTimeStamps = cms.untracked.bool(True),
            lim2bycommondefault = cms.untracked.PSet(
                limit = cms.untracked.int32(0)
            ),
            expect_overall_unnamed = cms.untracked.PSet(
                limit = cms.untracked.int32(-1)
            )
        ),
        u8_specific = cms.untracked.PSet(
            default = cms.untracked.PSet(
                limit = cms.untracked.int32(0)
            ),
            expect_specific = cms.untracked.PSet(
                limit = cms.untracked.int32(-1)
            ),
            noTimeStamps = cms.untracked.bool(True),
            lim2bycommondefault = cms.untracked.PSet(
                limit = cms.untracked.int32(0)
            ),
            lim0bydefaults = cms.untracked.PSet(
                limit = cms.untracked.int32(6)
            )
        ),
        u8_overall_specific = cms.untracked.PSet(
            lim3bydefault = cms.untracked.PSet(
                limit = cms.untracked.int32(3)
            ),
            default = cms.untracked.PSet(
                limit = cms.untracked.int32(0)
            ),
            noTimeStamps = cms.untracked.bool(True),
            expect_overall_specific = cms.untracked.PSet(
                limit = cms.untracked.int32(-1)
            ),
            lim2bycommondefault = cms.untracked.PSet(
                limit = cms.untracked.int32(0)
            )
        )
    )
)

process.maxEvents = cms.untracked.PSet(
    input = cms.untracked.int32(1)
)

process.source = cms.Source("EmptySource")

process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_E")

process.p = cms.Path(process.sendSomeMessages)