Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-03-14 23:36:19

0001 #!/bin/bash
0002 
0003 #sed on Linux and OS X have different command line options
0004 case `uname` in Darwin) SED_OPT="-i '' -E";;*) SED_OPT="-i -r";; esac ;
0005 
0006 status=0
0007   
0008 rm -f u1_errors.log u1_warnings.log u1_infos.log u1_debugs.log u1_default.log u1_job_report.mxml 
0009 
0010 cmsRun -j u1_job_report.mxml ${SCRAM_TEST_PATH}/u1_cfg.py || exit $?
0011 edmFjrDump u1_job_report.mxml
0012 
0013 for file in u1_errors.log u1_warnings.log u1_infos.log u1_debugs.log u1_default.log u1_job_report.mxml
0014 do
0015   sed $SED_OPT -f ${SCRAM_TEST_PATH}/filter-timestamps.sed $file
0016   ref_log=${SCRAM_TEST_PATH}/unit_test_outputs/$file
0017   [[ " ${CMSSW_VERSION}" == *"_DBG_X"* ]] && [ -e ${SCRAM_TEST_PATH}/unit_test_outputs/DBG/$file ] && ref_log=${SCRAM_TEST_PATH}/unit_test_outputs/DBG/$file
0018   diff ${ref_log} ./$file
0019   if [ $? -ne 0 ]  
0020   then
0021     echo The above discrepancies concern $file 
0022     status=1
0023   fi
0024 done
0025 
0026 exit $status