File indexing completed on 2023-01-17 23:57:40
0001
0002
0003 test=testParameterSet
0004
0005 function die { echo Failure $1: status $2 ; exit $2 ; }
0006
0007 pushd ${LOCAL_TMP_DIR}
0008
0009
0010 echo ${test} ------------------------------------------------------------
0011 cmsRun -p ${LOCAL_TEST_DIR}/${test}_cfg.py 2> ${test}.txt
0012 grep "Illegal parameter" ${test}.txt || die "cmsRun ${test}_cfg.py" $?
0013
0014
0015 echo testIllegalSourceParameter_cfg.py ------------------------------------------------------------
0016 cmsRun -p ${LOCAL_TEST_DIR}/testIllegalSourceParameter_cfg.py 2> testIllegalSourceParameter_cfg.txt
0017 grep "Illegal parameter" testIllegalSourceParameter_cfg.txt || die "cmsRun testIllegalSourceParameter_cfg.py" $?
0018
0019
0020 echo testIllegalServiceParameter_cfg.py ------------------------------------------------------------
0021 cmsRun -p ${LOCAL_TEST_DIR}/testIllegalServiceParameter_cfg.py 2> testIllegalServiceParameter_cfg.txt
0022 grep "Illegal parameter" testIllegalServiceParameter_cfg.txt || die "cmsRun testIllegalServiceParameter_cfg.py" $?
0023
0024
0025
0026
0027
0028
0029 echo edmWriteConfigs ------------------------------------------------------------
0030 edmWriteConfigs pluginFWCoreIntegrationTestPSet.so || die "edmWriteConfigs pluginTestProducerWithPSetDesc.so" $?
0031
0032
0033 echo cmsRun runAutoGeneratedCfi_cfg.py ------------------------------------------------------------
0034 cmsRun -p ${LOCAL_TEST_DIR}/runAutoGeneratedCfi_cfg.py || die "cmsRun runAutoGeneratedCfi_cfg.py" $?
0035
0036
0037 diff ${LOCAL_TMP_DIR}/testProducerWithPsetDesc_cfi.py ${LOCAL_TEST_DIR}/unit_test_outputs/testProducerWithPsetDesc_cfi.py || die "comparing testProducerWithPsetDesc_cfi.py" $?
0038
0039
0040
0041 echo cmsRun runNotAutoGeneratedCfi_cfg.py ------------------------------------------------------------
0042 cmsRun -p ${LOCAL_TEST_DIR}/runNotAutoGeneratedCfi_cfg.py || die "cmsRun runNotAutoGeneratedCfi_cfg.py" $?
0043
0044
0045 echo cmsRun testPSetAnalyzer_cfg.py ------------------------------------------------------------
0046 cmsRun -p ${LOCAL_TEST_DIR}/testPSetAnalyzer_cfg.py 2>&1 | grep " PSet test " > testPSetAnalyzer.txt
0047 diff ${LOCAL_TMP_DIR}/testPSetAnalyzer.txt ${LOCAL_TEST_DIR}/unit_test_outputs/testPSetAnalyzer.txt || die "comparing testPSetAnalyzer.txt" $?
0048
0049
0050 echo edmPluginHelp -p ProducerWithPSetDesc ------------------------------
0051 edmPluginHelp -p ProducerWithPSetDesc &> testProducerWithPsetDesc_doc.txt || die "edmPluginHelp -p ProducerWithPSetDesc" $?
0052 diff ${LOCAL_TMP_DIR}/testProducerWithPsetDesc_doc.txt ${LOCAL_TEST_DIR}/unit_test_outputs/testProducerWithPsetDesc_doc.txt || die "comparing testProducerWithPsetDesc_doc.txt" $?
0053
0054
0055 echo edmPluginHelp -p TestDescriptionComments ------------------------------
0056 edmPluginHelp -p TestDescriptionComments &> testDescriptionComments_doc.txt || die "edmPluginHelp -p TestDescriptionComments" $?
0057 diff ${LOCAL_TMP_DIR}/testDescriptionComments_doc.txt ${LOCAL_TEST_DIR}/unit_test_outputs/testDescriptionComments_doc.txt || die "comparing testDescriptionComments_doc.txt" $?
0058
0059
0060 echo edmPluginHelp -p ProducerWithPSetDesc -b ---------------------------
0061 edmPluginHelp -p ProducerWithPSetDesc -b &> testProducerWithPsetDesc_briefdoc.txt || die "edmPluginHelp -p ProducerWithPSetDesc -b" $?
0062 diff ${LOCAL_TMP_DIR}/testProducerWithPsetDesc_briefdoc.txt ${LOCAL_TEST_DIR}/unit_test_outputs/testProducerWithPsetDesc_briefdoc.txt || die "comparing testProducerWithPsetDesc_briefdoc.txt" $?
0063
0064 echo edmPluginHelp -t options -b ---------------------------
0065 edmPluginHelp -t options -b &> testEdmPluginHelpOptions.txt || die "edmPluginHelp -t options -b" $?
0066 grep "numberOfThreads[[:blank:]]\+untracked uint32[[:blank:]]\+1" testEdmPluginHelpOptions.txt || die "testing edmPluginHelp -t options -b" $?
0067
0068
0069 echo cmsRun importRestrictions1.py ------------------------------------------------------------
0070 cmsRun -p ${LOCAL_TEST_DIR}/importRestrictions1.py 2> importRestrictions1.txt
0071 grep "Event 2" importRestrictions1.txt || die " cmsRun importRestrictions1.py" $?
0072 echo cmsRun importRestrictions2.py ------------------------------------------------------------
0073 cmsRun -p ${LOCAL_TEST_DIR}/importRestrictions2.py 2> importRestrictions2.txt
0074 grep "ImportError" importRestrictions2.txt || die " cmsRun importRestrictions2.py" $?
0075 echo cmsRun importRestrictions3.py ------------------------------------------------------------
0076 cmsRun -p ${LOCAL_TEST_DIR}/importRestrictions3.py 2> importRestrictions3.txt
0077 grep "Event 2" importRestrictions3.txt || die " cmsRun importRestrictions3.py" $?
0078
0079
0080 popd
0081
0082 exit 0