Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,120 changes: 561 additions & 559 deletions FWCore/Integration/plugins/ProducerWithPSetDesc.cc

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions FWCore/Integration/test/cfi_dumpPython.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .testProducerWithPsetDesc_cfi import testProducerWithPsetDesc
print(testProducerWithPsetDesc.dumpPython())
8 changes: 7 additions & 1 deletion FWCore/Integration/test/run_ParameterSet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ LOCAL_TEST_DIR=${SCRAM_TEST_PATH}
cmsRun ${LOCAL_TEST_DIR}/runAutoGeneratedCfi_cfg.py || die "cmsRun runAutoGeneratedCfi_cfg.py" $?

# Compare the cfi file to a reference file to ensure it is correct
diff ./testProducerWithPsetDesc_cfi.py ${LOCAL_TEST_DIR}/unit_test_outputs/testProducerWithPsetDesc_cfi.py || die "comparing testProducerWithPsetDesc_cfi.py" $?
mkdir testcfi
cp ${LOCAL_TEST_DIR}/cfi_dumpPython.py testcfi
cp testProducerWithPsetDesc_cfi.py testcfi
cp ProducerWithPSetDesc.py testcfi
PYTHON3PATH=${PWD}:${PYTHON3PATH} python3 -m testcfi.cfi_dumpPython > dumpPython.log
python3 ${LOCAL_TEST_DIR}/unit_test_outputs/testProducerWithPsetDesc_cfi.py > dumpPython_ref.log
diff ./dumpPython.log dumpPython_ref.log || die "comparing testProducerWithPsetDesc_cfi.py" $?

# This time try a cfi without any of the required parameters to test that we properly insert
# required missing parameters into the ParameterSet
Expand Down
2,741 changes: 2,731 additions & 10 deletions FWCore/Integration/test/unit_test_outputs/testProducerWithPsetDesc_briefdoc.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -373,3 +373,5 @@
),
mightGet = cms.optional.untracked.vstring
)

print(testProducerWithPsetDesc.dumpPython())
Loading