Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-08 23:11:09

0001 #!/bin/bash
0002 
0003 function die { echo Failure $1: status $2 ; exit $2 ; }
0004 
0005 echo LOCAL_TMP_DIR = ${LOCAL_TMP_DIR}
0006 
0007 pushd ${LOCAL_TMP_DIR}
0008   testConfig=create_run_only_file_cfg.py
0009   rm -f dqm_run_only.root
0010   echo ${testConfig} ------------------------------------------------------------
0011   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0012 
0013   testConfig=read_run_only_file_cfg.py
0014   echo ${testConfig} ------------------------------------------------------------
0015   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0016 
0017   checkFile=check_run_only_file.py
0018   echo ${checkFile} ------------------------------------------------------------
0019   python3 ${LOCAL_TEST_DIR}/${checkFile} || die "python3 ${checkFile}" $?
0020 
0021   testConfig=create_lumi_only_file_cfg.py
0022   rm -f dqm_lumi_only.root
0023   echo ${testConfig} ------------------------------------------------------------
0024   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0025 
0026   testConfig=read_lumi_only_file_cfg.py
0027   echo ${testConfig} ------------------------------------------------------------
0028   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0029 
0030   checkFile=check_lumi_only_file.py
0031   echo ${checkFile} ------------------------------------------------------------
0032   python3 ${LOCAL_TEST_DIR}/${checkFile} || die "python3 ${checkFile}" $?
0033 
0034   testConfig=create_run_lumi_file_cfg.py
0035   rm -f dqm_run_lumi.root
0036   echo ${testConfig} ------------------------------------------------------------
0037   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0038 
0039   testConfig=read_run_lumi_file_cfg.py
0040   echo ${testConfig} ------------------------------------------------------------
0041   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0042 
0043   checkFile=check_run_lumi_file.py
0044   echo ${checkFile} ------------------------------------------------------------
0045   python3 ${LOCAL_TEST_DIR}/${checkFile} dqm_run_lumi.root || die "python3 ${checkFile}" $?
0046 
0047   #read write
0048   testConfig=read_write_run_lumi_file_cfg.py
0049   rm -f dqm_run_lumi_copy.root
0050   echo ${testConfig} ------------------------------------------------------------
0051   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0052 
0053   checkFile=check_run_lumi_file.py
0054   echo ${checkFile} ------------------------------------------------------------
0055   python3 ${LOCAL_TEST_DIR}/${checkFile} dqm_run_lumi_copy.root || die "python3 ${checkFile}" $?
0056 
0057   #more than one type
0058   testConfig=create_file_multi_types_cfg.py
0059   rm -f dqm_file_multi_types.root
0060   echo ${testConfig} ------------------------------------------------------------
0061   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0062 
0063   checkFile=check_multi_types.py
0064   fileToCheck=dqm_file_multi_types.root
0065   echo ${checkFile} ${fileToCheck} ------------------------------------------------------------
0066   python3 ${LOCAL_TEST_DIR}/${checkFile} ${fileToCheck} || die "python3 ${checkFile} ${fileToCheck}" $?
0067 
0068   testConfig=copy_file_multi_types_cfg.py
0069   rm -f dqm_copy_multi_types.root
0070   echo ${testConfig} ------------------------------------------------------------
0071   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0072 
0073   checkFile=check_multi_types.py
0074   fileToCheck=dqm_copy_multi_types.root
0075   echo ${checkFile}  ${fileToCheck} ------------------------------------------------------------
0076   python3 ${LOCAL_TEST_DIR}/${checkFile} ${fileToCheck} || die "python3 ${checkFile} ${fileToCheck}" $?
0077 
0078   #merging
0079   testConfig=create_file1_cfg.py
0080   rm -f dqm_file1.root
0081   rm -f dqm_file1_jobreport.xml
0082   echo ${testConfig} ------------------------------------------------------------
0083   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} -j dqm_file1_jobreport.xml || die "cmsRun ${testConfig}" $?
0084 
0085   # test GUID here
0086   checkFile=check_guid_file1.py
0087   echo ${checkFile} ------------------------------------------------------------
0088   python3 ${LOCAL_TEST_DIR}/${checkFile} || die "python3 ${checkFile}" $?
0089 
0090   testConfig=create_file2_cfg.py
0091   rm -f dqm_file2.root
0092   echo ${testConfig} ------------------------------------------------------------
0093   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0094 
0095   testConfig=read_file1_file2_cfg.py
0096   echo ${testConfig} ------------------------------------------------------------
0097   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0098 
0099   testConfig=create_file3_cfg.py
0100   rm -f dqm_file3.root
0101   echo ${testConfig} ------------------------------------------------------------
0102   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0103 
0104   testConfig=read_file1_file3_cfg.py
0105   echo ${testConfig} ------------------------------------------------------------
0106   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0107 
0108   testConfig=merge_file1_file2_cfg.py
0109   rm -f dqm_merged_file1_file2.root
0110   echo ${testConfig} ------------------------------------------------------------
0111   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0112 
0113   checkFile=check_merged_file1_file2.py
0114   echo ${checkFile} ------------------------------------------------------------
0115   python3 ${LOCAL_TEST_DIR}/${checkFile} || die "python3 ${checkFile}" $?
0116 
0117   testConfig=read_merged_file1_file2_cfg.py
0118   echo ${testConfig} ------------------------------------------------------------
0119   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0120 
0121   testConfig=merge_file1_file3_file2_cfg.py
0122   rm -f dqm_merged_file1_file3_file2.root
0123   echo ${testConfig} ------------------------------------------------------------
0124   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0125 
0126   testConfig=read_merged_file1_file3_file2_cfg.py
0127   echo ${testConfig} ------------------------------------------------------------
0128   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0129 
0130   testConfig=create_one_run_one_lumi_run_only_file_cfg.py
0131   rm -f dqm_one_run_one_lumi_run_only.root
0132   echo ${testConfig} ------------------------------------------------------------
0133   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0134   cp dqm_one_run_one_lumi_run_only.root dqm_one_run_one_lumi_run_only_2.root
0135  
0136   testConfig=merge_one_run_one_lumi_run_only_cfg.py
0137   rm -f dqm_merged_one_run_one_lumi_run_only.root
0138   echo ${testConfig} ------------------------------------------------------------
0139   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0140 
0141   testConfig=merge_file1_file3_file2_filterOnRun1_cfg.py
0142   rm -f dqm_merged_file1_file3_file2_filterOnRun1.root
0143   echo ${testConfig} ------------------------------------------------------------
0144   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0145 
0146   checkFile=check_merged_file1_file3_file2_filterOnRun1_cfg.py
0147   echo ${checkFile} ------------------------------------------------------------
0148   python3 ${LOCAL_TEST_DIR}/${checkFile} || die "python3 ${checkFile}" $?
0149 
0150   testConfig=read_write_merged_file1_file3_file2_filterOnRun1_cfg.py
0151   rm -f dqm_merged_file1_file3_file2_filterOnRun1_copy.root
0152   echo ${testConfig} ------------------------------------------------------------
0153   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0154 
0155   checkFile=check_merged_file1_file3_file2_filterOnRun1_copy_cfg.py
0156   fileToCheck=dqm_merged_file1_file3_file2_filterOnRun1_copy.root
0157   echo ${checkFile}  ${fileToCheck} ------------------------------------------------------------
0158   python3 ${LOCAL_TEST_DIR}/${checkFile} ${fileToCheck} || die "python3 ${checkFile} ${fileToCheck}" $?
0159 
0160   testConfig=create_file4_cfg.py
0161   rm -f dqm_file4.root
0162   echo ${testConfig} ------------------------------------------------------------
0163   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0164 
0165   testConfig=merge_file1_file3_file4_cfg.py
0166   rm -f dqm_merged_file1_file3_file4.root
0167   echo ${testConfig} ------------------------------------------------------------
0168   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0169 
0170   testConfig=read_merged_file1_file3_file4_cfg.py
0171   echo ${testConfig} ------------------------------------------------------------
0172   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0173 
0174 # empty
0175   testConfig=create_empty_file_cfg.py
0176   rm -f dqm_empty.root
0177   echo ${testConfig} ------------------------------------------------------------
0178   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
0179 
0180   stat dqm_empty.root && die "file created by cmsRun ${testConfig}" $?
0181 
0182   testConfig=read_missing_file_cfg.py
0183   echo ${testConfig} ------------------------------------------------------------
0184   cmsRun -p ${LOCAL_TEST_DIR}/${testConfig} && die "cmsRun ${testConfig}" $?
0185   
0186 popd
0187 
0188 exit 0