Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:28

0001 #!/bin/bash
0002 
0003 # Pass in name and status
0004 function die { echo $1: status $2 ;  exit $2; }
0005 
0006 LOCAL_TEST_DIR="${CMSSW_BASE}/src/FWCore/Framework/test"
0007 
0008 F1=${LOCAL_TEST_DIR}/test_deepCall_unscheduled_cfg.py
0009 F2=${LOCAL_TEST_DIR}/test_deepCall_unscheduled_fail_cfg.py
0010 F3=${LOCAL_TEST_DIR}/test_offPath_unscheduled_cfg.py
0011 F4=${LOCAL_TEST_DIR}/test_onPath_unscheduled_cfg.py
0012 F5=${LOCAL_TEST_DIR}/test_onPath_wrongOrder_unscheduled_fail_cfg.py
0013 
0014 (cmsRun $F1 ) > test_deepCall_unscheduled.log || die "Failure using $F1" $?
0015 diff ${LOCAL_TEST_DIR}/unit_test_outputs/test_deepCall_unscheduled.log test_deepCall_unscheduled.log || die "comparing test_deepCall_unscheduled.log" $?
0016 
0017 !(cmsRun -j test_deepCall_fail_fjr.xml $F2 ) || die "Failure using $F2" $?
0018 (grep '<FrameworkError ExitStatus="8006" Type="Fatal Exception" >' test_deepCall_fail_fjr.xml) || die "Failed to return proper exit code $F2" $?
0019 (cmsRun $F3 ) || die "Failure using $F3" $?
0020 
0021 (cmsRun $F4 )  > test_onPath_unscheduled.log || die "Failure using $F4" $?
0022 diff ${LOCAL_TEST_DIR}/unit_test_outputs/test_onPath_unscheduled.log test_onPath_unscheduled.log || die "comparing test_onPath_unscheduled.log" $?
0023 
0024 !(cmsRun $F5 ) || die "Failure using $F5" $?
0025