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
# Runs using configuration cfi file that was autogenerated
# The purpose is to test the generation of cfi files

import FWCore.ParameterSet.Config as cms

process = cms.Process("TEST")

process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")

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

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

# test the autogenerated cfi
from FWCore.Integration.testProducerWithPsetDesc_cfi import *

process.testProducerWithPsetDesc = testProducerWithPsetDesc
process.testProducerWithPsetDesc.plugin1.type = cms.string("edmtestAnotherOneMaker")

process.testProducerWithPsetDesc.plugin4.pluginRecursive.type = cms.string("edmtestAnotherOneMaker")

psetFor5 = cms.PSet(
  type = cms.string("edmtestAnotherOneMaker")
)

process.testProducerWithPsetDesc.plugin5[1].pluginRecursive = psetFor5

process.p1 = cms.Path(process.testProducerWithPsetDesc)

# also run a test module using a helper plugin
process.load("FWCore.Integration.pluginUsingProducer_cfi")
process.p2 = cms.Path(process.pluginUsingProducer)