1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
|
#!/bin/bash
function die { echo Failure $1: status $2 ; exit $2 ; }
LOCAL_TEST_DIR=${SCRAM_TEST_PATH}
testConfig=create_run_only_file_cfg.py
rm -f dqm_run_only.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
testConfig=read_run_only_file_cfg.py
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
checkFile=check_run_only_file.py
echo ${checkFile} ------------------------------------------------------------
python3 ${LOCAL_TEST_DIR}/${checkFile} || die "python3 ${checkFile}" $?
testConfig=create_lumi_only_file_cfg.py
rm -f dqm_lumi_only.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
testConfig=read_lumi_only_file_cfg.py
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
checkFile=check_lumi_only_file.py
echo ${checkFile} ------------------------------------------------------------
python3 ${LOCAL_TEST_DIR}/${checkFile} || die "python3 ${checkFile}" $?
testConfig=create_run_lumi_file_cfg.py
rm -f dqm_run_lumi.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
testConfig=read_run_lumi_file_cfg.py
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
checkFile=check_run_lumi_file.py
echo ${checkFile} ------------------------------------------------------------
python3 ${LOCAL_TEST_DIR}/${checkFile} dqm_run_lumi.root || die "python3 ${checkFile}" $?
#read write
testConfig=read_write_run_lumi_file_cfg.py
rm -f dqm_run_lumi_copy.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
checkFile=check_run_lumi_file.py
echo ${checkFile} ------------------------------------------------------------
python3 ${LOCAL_TEST_DIR}/${checkFile} dqm_run_lumi_copy.root || die "python3 ${checkFile}" $?
#more than one type
testConfig=create_file_multi_types_cfg.py
rm -f dqm_file_multi_types.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
checkFile=check_multi_types.py
fileToCheck=dqm_file_multi_types.root
echo ${checkFile} ${fileToCheck} ------------------------------------------------------------
python3 ${LOCAL_TEST_DIR}/${checkFile} ${fileToCheck} || die "python3 ${checkFile} ${fileToCheck}" $?
testConfig=copy_file_multi_types_cfg.py
rm -f dqm_copy_multi_types.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
checkFile=check_multi_types.py
fileToCheck=dqm_copy_multi_types.root
echo ${checkFile} ${fileToCheck} ------------------------------------------------------------
python3 ${LOCAL_TEST_DIR}/${checkFile} ${fileToCheck} || die "python3 ${checkFile} ${fileToCheck}" $?
#merging
testConfig=create_file1_cfg.py
rm -f dqm_file1.root
rm -f dqm_file1_jobreport.xml
echo ${testConfig} ------------------------------------------------------------
cmsRun -j dqm_file1_jobreport.xml ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
# test GUID here
checkFile=check_guid_file1.py
echo ${checkFile} ------------------------------------------------------------
python3 ${LOCAL_TEST_DIR}/${checkFile} || die "python3 ${checkFile}" $?
testConfig=create_file2_cfg.py
rm -f dqm_file2.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
testConfig=read_file1_file2_cfg.py
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
testConfig=create_file3_cfg.py
rm -f dqm_file3.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
testConfig=read_file1_file3_cfg.py
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
testConfig=merge_file1_file2_cfg.py
rm -f dqm_merged_file1_file2.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
checkFile=check_merged_file1_file2.py
echo ${checkFile} ------------------------------------------------------------
python3 ${LOCAL_TEST_DIR}/${checkFile} || die "python3 ${checkFile}" $?
testConfig=read_merged_file1_file2_cfg.py
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
testConfig=merge_file1_file3_file2_cfg.py
rm -f dqm_merged_file1_file3_file2.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
testConfig=read_merged_file1_file3_file2_cfg.py
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
testConfig=create_one_run_one_lumi_run_only_file_cfg.py
rm -f dqm_one_run_one_lumi_run_only.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
cp dqm_one_run_one_lumi_run_only.root dqm_one_run_one_lumi_run_only_2.root
testConfig=merge_one_run_one_lumi_run_only_cfg.py
rm -f dqm_merged_one_run_one_lumi_run_only.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
testConfig=merge_file1_file3_file2_filterOnRun1_cfg.py
rm -f dqm_merged_file1_file3_file2_filterOnRun1.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
checkFile=check_merged_file1_file3_file2_filterOnRun1_cfg.py
echo ${checkFile} ------------------------------------------------------------
python3 ${LOCAL_TEST_DIR}/${checkFile} || die "python3 ${checkFile}" $?
testConfig=read_write_merged_file1_file3_file2_filterOnRun1_cfg.py
rm -f dqm_merged_file1_file3_file2_filterOnRun1_copy.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
checkFile=check_merged_file1_file3_file2_filterOnRun1_copy_cfg.py
fileToCheck=dqm_merged_file1_file3_file2_filterOnRun1_copy.root
echo ${checkFile} ${fileToCheck} ------------------------------------------------------------
python3 ${LOCAL_TEST_DIR}/${checkFile} ${fileToCheck} || die "python3 ${checkFile} ${fileToCheck}" $?
testConfig=create_file4_cfg.py
rm -f dqm_file4.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
testConfig=merge_file1_file3_file4_cfg.py
rm -f dqm_merged_file1_file3_file4.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
testConfig=read_merged_file1_file3_file4_cfg.py
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
# empty
testConfig=create_empty_file_cfg.py
rm -f dqm_empty.root
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} || die "cmsRun ${testConfig}" $?
stat dqm_empty.root && die "file created by cmsRun ${testConfig}" $?
testConfig=read_missing_file_cfg.py
echo ${testConfig} ------------------------------------------------------------
cmsRun ${LOCAL_TEST_DIR}/${testConfig} && die "cmsRun ${testConfig}" $?
exit 0
|