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 u3_infos.log u3_statistics.log  
0011 
0012 cmsRun -p $LOCAL_TEST_DIR/u3_cfg.py || exit $?
0013 #/scratch2/mf/CMSSW_1_4_0_pre1/tmp/slc3_ia32_gcc323_dbg/src/FWCore/Framework/bin/cmsRun/cmsRun -p $LOCAL_TEST_DIR/u3_cfg.py || exit $?
0014  
0015 for file in u3_infos.log u3_statistics.log
0016 do
0017   sed $SED_OPT -f $LOCAL_TEST_DIR/filter-timestamps.sed $file
0018   diff $LOCAL_TEST_DIR/unit_test_outputs/$file $LOCAL_TMP_DIR/$file  
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