-
Notifications
You must be signed in to change notification settings - Fork 23
/
testvalues.go
248 lines (243 loc) · 7.15 KB
/
testvalues.go
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
/*
* === This file is part of ALICE O² ===
*
* Copyright 2020 CERN and copyright holders of ALICE O².
* Author: Ayaan Zaidi <azaidi@cern.ch>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* In applying this license CERN does not waive the privileges and
* immunities granted to it by virtue of its status as an
* Intergovernmental Organization or submit itself to any jurisdiction.
*/
package converter
var defaults = map[string]string {
"qc_config_uri": "json:///etc/flp.d/qc/readout.json",
"user": "test-user-1",
}
var extraVars = map[string]string {
"readout_cfg_uri": "file:/home/flp/readout_stfb_emu.cfg",
}
var TestDump = Dump{
Workflows: []workflowEntry{
{
Name: "producer-0",
Inputs: []io{},
Outputs: []io{
io{
Binding: "out",
Origin: "TST",
Description: "RAWDATA",
Subspec: 0,
Lifetime: 0,
},
},
Options: []options{},
Rank: 0,
NSlots: 1,
InputTimeSliceID: 0,
MaxInputTimeslices: 1,
},
},
Metadata: []metadataEntry{
{
Name: "internal-dpl-clock",
Executable: "o2-qc-run-basic",
CmdlLineArgs: []string{
"-b",
"--dump-workflow",
"--dump-workflow-file",
"dpl-dump.json",
},
WorkflowOptions: []options{
{
Name: "config-path",
Type: "4",
DefaultValue: "",
Help: "Absolute path to the config file. Overwrite the default paths. Do not use with no-data-sampling.",
},
{
Name: "no-data-sampling",
Type: "5",
DefaultValue: "0",
Help: "Skips data sampling, connects directly the task to the producer.",
},
{
Name: "readers",
Type: "1",
DefaultValue: "1",
Help: "number of parallel readers to use",
},
{
Name: "pipeline",
Type: "4",
DefaultValue: "",
Help: "override default pipeline size",
},
},
Channels: []string{
"from_internal-dpl-clock_to_producer-0",
"from_internal-dpl-clock_to_Dispatcher",
"from_internal-dpl-clock_to_QC-TASK-RUNNER-QcTask",
},
},
{
Name: "producer-0",
Executable: "o2-qc-run-basic",
CmdlLineArgs: []string{
"-b",
"--dump-workflow",
"--dump-workflow-file",
"dpl-dump.json",
},
WorkflowOptions: []options{
options{
Name: "config-path",
Type: "4",
DefaultValue: "",
Help: "Absolute path to the config file. Overwrite the default paths. Do not use with no-data-sampling.",
},
options{
Name: "no-data-sampling",
Type: "5",
DefaultValue: "0",
Help: "Skips data sampling, connects directly the task to the producer.",
},
options{
Name: "readers",
Type: "1",
DefaultValue: "1",
Help: "number of parallel readers to use",
},
options{
Name: "pipeline",
Type: "4",
DefaultValue: "",
Help: "override default pipeline size",
},
},
Channels: []string{
"from_internal-dpl-clock_to_producer-0",
"from_producer-0_to_Dispatcher",
},
},
},
}
var TestJSON = `
{
"workflow": [
{
"name": "producer-0",
"inputs": [],
"outputs": [
{
"binding": "out",
"origin": "TST",
"description": "RAWDATA",
"subspec": 0,
"lifetime": 0
}
],
"options": [],
"rank": 0,
"nSlots": 1,
"inputTimeSliceId": 0,
"maxInputTimeslices": 1
}
],
"metadata": [
{
"name": "internal-dpl-clock",
"executable": "o2-qc-run-basic",
"cmdLineArgs": [
"-b",
"--dump-workflow",
"--dump-workflow-file",
"dpl-dump.json"
],
"workflowOptions": [
{
"name": "config-path",
"type": "4",
"defaultValue": "",
"help": "Absolute path to the config file. Overwrite the default paths. Do not use with no-data-sampling."
},
{
"name": "no-data-sampling",
"type": "5",
"defaultValue": "0",
"help": "Skips data sampling, connects directly the task to the producer."
},
{
"name": "readers",
"type": "1",
"defaultValue": "1",
"help": "number of parallel readers to use"
},
{
"name": "pipeline",
"type": "4",
"defaultValue": "",
"help": "override default pipeline size"
}
],
"channels": [
"from_internal-dpl-clock_to_producer-0",
"from_internal-dpl-clock_to_Dispatcher",
"from_internal-dpl-clock_to_QC-TASK-RUNNER-QcTask"
]
},
{
"name": "producer-0",
"executable": "o2-qc-run-basic",
"cmdLineArgs": [
"-b",
"--dump-workflow",
"--dump-workflow-file",
"dpl-dump.json"
],
"workflowOptions": [
{
"name": "config-path",
"type": "4",
"defaultValue": "",
"help": "Absolute path to the config file. Overwrite the default paths. Do not use with no-data-sampling."
},
{
"name": "no-data-sampling",
"type": "5",
"defaultValue": "0",
"help": "Skips data sampling, connects directly the task to the producer."
},
{
"name": "readers",
"type": "1",
"defaultValue": "1",
"help": "number of parallel readers to use"
},
{
"name": "pipeline",
"type": "4",
"defaultValue": "",
"help": "override default pipeline size"
}
],
"channels": [
"from_internal-dpl-clock_to_producer-0",
"from_producer-0_to_Dispatcher"
]
}
]
}
`