Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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  u12_warnings.log u12_placeholder.log  
0011 
0012 cmsRun -p $LOCAL_TEST_DIR/u12_cfg.py || exit $?
0013  
0014 for file in  u12_warnings.log    
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   if [ $? -ne 0 ]  
0019   then
0020     echo The above discrepancies concern $file 
0021     status=1
0022   fi
0023 done
0024 
0025 for file in u12_placeholder.log
0026 do
0027   if [ -f $file ]
0028   then
0029     echo A placeholder file was created when it should not be: $file
0030     status=1
0031   fi
0032 done
0033 
0034 popd
0035 
0036 exit $status