Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:08

0001 #!/bin/bash
0002 
0003 function die { echo Failure $1: status $2 ; exit $2 ; }
0004 
0005 cmsRun -e ${SCRAM_TEST_PATH}/test_Timing_cfg.py &> test_Timing.log || die "cmsRun test_Timing_cfg.py" $?
0006 
0007 NAMES=("AvgEventTime" "EventThroughput" "MaxEventTime" "MinEventTime" "NumberOfStreams" "NumberOfThreads" "TotalEventSetupTime" \
0008          "TotalInitCPU" "TotalInitTime" "TotalJobCPU" "TotalJobChildrenCPU" "TotalJobTime" "TotalLoopCPU" "TotalLoopTime" "TotalNonModuleTime")
0009 
0010 grep "Time Summary" test_Timing.log || die "Check for 'Time Summary' message" $?
0011 grep '<PerformanceSummary Metric="Timing">' FrameworkJobReport.xml || die "Check for Timing group in FJR" $?
0012 
0013 for NAME in ${NAMES[@]}; do
0014   grep $NAME FrameworkJobReport.xml || die "Check for $NAME in FJR" $?
0015 done
0016 exit 0