Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:45

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 pushd $LOCAL_TMP_DIR
0007 
0008 status=0
0009   
0010 rm -f u14_errors.log u14_warnings.log u14_infos.log u14_debugs.log u14_default.log u14_job_report.mxml 
0011 
0012 cmsRun -j u14_job_report.mxml -p $LOCAL_TEST_DIR/u14_cfg.py || exit $?
0013  
0014 for file in u14_errors.log u14_warnings.log u14_infos.log u14_debugs.log u14_default.log u14_job_report.mxml   
0015 do
0016   sed $SED_OPT -f $LOCAL_TEST_DIR/filter-timestamps.sed $file
0017   diff $LOCAL_TEST_DIR/unit_test_outputs/$file $LOCAL_TMP_DIR/$file  
0018 # fancy_diffs $LOCAL_TEST_DIR/unit_test_outputs/$file $LOCAL_TMP_DIR/$file $LOCAL_TEST_DIR/$file.diffs
0019   if [ $? -ne 0 ]  
0020   then
0021     echo The above discrepancies concern $file 
0022     status=1
0023   fi
0024 done
0025 
0026 popd
0027 
0028 exit $status