1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Runs using configuration cfi file that contains none of the required
# parameters to test that the required ones are properly inserted
# during validation
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")
# expects this cfi file to be in the current directory
# usually run from the tmp/slc4_ia32_gcc345 directory
# where the cfi was just created by the test script
from FWCore.Integration.testProducerWithPsetDescEmpty_cfi import *
process.testProducerWithPsetDesc = testProducerWithPsetDesc
process.p1 = cms.Path(process.testProducerWithPsetDesc)
|