Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:47:35

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 u16_errors.mmlog u16_altWarnings.log u16_infos.mmlog u16_altDebugs.mmlog u16_default.log u16_job_report.mmxml u16_statistics.mslog 
0009 
0010 cmsRun -e -j u16_job_report.mmxml ${SCRAM_TEST_PATH}/u16_cfg.py || exit $?
0011  
0012 for file in u16_errors.mmlog u16_altWarnings.log u16_infos.mmlog u16_altDebugs.mmlog u16_default.log u16_job_report.mmxml u16_statistics.mslog  
0013 do
0014   sed $SED_OPT -f ${SCRAM_TEST_PATH}/filter-timestamps.sed $file
0015   diff ${SCRAM_TEST_PATH}/unit_test_outputs/$file ./$file
0016   if [ $? -ne 0 ]  
0017   then
0018     echo The above discrepancies concern $file 
0019     status=1
0020   fi
0021 done
0022 
0023 exit $status