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