-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathMakefile.functional
More file actions
398 lines (337 loc) · 23.9 KB
/
Makefile.functional
File metadata and controls
398 lines (337 loc) · 23.9 KB
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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
# SPDX-FileCopyrightText: (C) 2021 - 2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
different-formats-maps-api: # NEX-T10392-API
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_different_formats_maps_api.py, 'pgserver web', true, /run/secrets/controller.auth)
persistence-api: # NEX-T10393-API
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(eval PROJECT := persistence-api)
$(eval CLEANUP_MODE := keep_volumes)
$(eval SKIP_INIT := 0)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_persistence_on_page_navigate_api.py, 'pgserver web', true, /run/secrets/controller.auth)
$(eval PROJECT := persistence-api)
$(eval CLEANUP_MODE := full)
$(eval SKIP_INIT := 1)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_persistence_on_restart_api.py, 'pgserver web', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
$(eval PROJECT :=)
$(eval CLEANUP_MODE :=)
$(eval SKIP_INIT :=)
scene-import-api: # NEX-T13967
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_scene_import_api.py, 'pgserver web', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
scene-import-json: # NEX-T15347
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/scene_no_db.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), controller/tests/tc_scene_import_json.py, 'scene', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
scenes-summary-api: # NEX-T10394-API
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_scenes_summary_api.py, 'pgserver web', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
scene-details-api: # NEX-T10395-API
$(eval SERVICES := $(strip pgserver web retail-video scene))
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/dlstreamer/retail_video.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml:$(COMPOSE)/cams.yml)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_scene_details_api.py, '$(SERVICES)', true, /run/secrets/controller.auth)
object-crud-api: # NEX-T10429-API
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_object_crud_api.py, 'pgserver web', true, /run/secrets/controller.auth)
infer-rotation: # NEX-T10543
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(eval SERVICES := $(strip pgserver web retail-video scene))
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/dlstreamer/retail_video.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml:$(COMPOSE)/cams.yml)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_rotation_from_velocity.py, '$(SERVICES)', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
add-delete-3d-object-api: # NEX-T10428-API
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_add_delete_3d_object_api.py, 'pgserver web', true, /run/secrets/controller.auth)
upload-3d-glb-file-api: # NEX-T10425-API
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_upload_3d_glb_file_api.py, 'pgserver web', true, /run/secrets/controller.auth)
upload-only-3d-glb-files-api: # NEX-T10433-API
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_upload_only_3d_glb_files_api.py, 'pgserver web', true, /run/secrets/controller.auth)
sensor-area-api: # NEX-T10401-API
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_sensor_area_api.py, 'pgserver web', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
superuser-crud-operations-api: # NEX-T10418-API
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_superuser_crud_operations_api.py, 'pgserver web', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
sensor-location-api: # NEX-T10400-API
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_sensor_location_api.py, 'pgserver web', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
sensor-scene-api: # NEX-T10396
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_sensor_scene_api.py, 'pgserver web', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
calibrate-all-sensor-types-api: # NEX-T10457-API
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_calibrate_all_sensor_types_api.py, 'pgserver web', true, /run/secrets/controller.auth)
add-orphaned-cameras: # NEX-T10402
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_add_orphaned_cameras.py, 'pgserver web scene', true, /run/secrets/controller.auth)
api-large-strings: # NEX-T10583
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_api_large_strings.py, 'pgserver web', true, /run/secrets/controller.auth)
auto-calibration-api: # NEX-XXXXXX
$(eval SERVICES := $(strip pgserver web queuing-video autocalibration))
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web_calibration.yml:$(COMPOSE)/dlstreamer/queuing_video.yml:$(COMPOSE)/autocalibration.yml:$(COMPOSE)/cams.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_auto_calibration_api.py, '$(SERVICES)', true, /run/secrets/browser.auth,tests/calibrationdb.tar.bz2)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
child-scenes: # NEX-T10439
$(eval IMAGE_OLD := $(BASE_IMAGE))
$(eval override BASE_IMAGE := $(IMAGE)-controller-test)
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_child_scenes.py, 'pgserver web scene', true, /run/secrets/controller.auth)
$(eval override BASE_IMAGE := $(IMAGE_OLD))
camera-deletion-api: # NEX-T10403-API
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_camera_deletion_api.py, 'pgserver web scene', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
camera-intrinsics-api: # NEX-T10415-API
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_camera_intrinsics_api.py, 'pgserver web scene', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
delete-roi-mqtt: # NEX-T10430
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_delete_roi_mqtt.py, 'pgserver scene', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
delete-sensor-mqtt-api: # NEX-T10432-API
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_delete_sensor_mqtt_api.py, 'pgserver scene', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
delete-sensor-scene-api: # NEX-T10397-API
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_delete_sensor_scene_api.py, 'pgserver web scene', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
delete-sensors-api: # NEX-T10399-API
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_delete_sensors_api.py, 'pgserver web scene', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
delete-tripwire-mqtt: # NEX-T10431
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/ui/tc_delete_tripwire_mqtt.py, 'pgserver scene', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
geospatial-ingest-publish: # NEX-T10490
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_geospatial_ingest_publish.py, 'pgserver web scene', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
manual-camera-calibration-api: # NEX-15280
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_manual_camera_calibration_api.py, 'pgserver web', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
mqtt-auth: # NEX-T10423
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), tests/security/system/negative_mqtt_insecure_auth.py)
mqtt-cert: # NEX-T10423
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), tests/security/system/negative_mqtt_insecure_cert.py)
mqtt-roi: # NEX-T10404
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_roi_mqtt.py, 'pgserver web scene', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
mqtt-sensor-roi: # NEX-T10460
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_mqtt_sensor_roi.py, 'pgserver web scene', true, /run/secrets/controller.auth)
mqtt-slow-sensor-roi: # NEX-T10461
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_mqtt_slow_sensor_roi.py, 'pgserver web scene', true, /run/secrets/controller.auth)
mqtt-tripwire: # NEX-T10406
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_tripwire_mqtt.py, 'pgserver web scene', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
out-of-box: # NEX-T10417
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/dlstreamer/retail_video.yml:$(COMPOSE)/dlstreamer/queuing_video.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web_default.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/cams.yml)
$(eval SERVICES := $(strip pgserver web queuing-video retail-video scene))
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/ui/tc_out_of_box.py, '$(SERVICES)', true, /run/secrets/browser.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
out-of-box-no-ntp: # NEX-T10417
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/dlstreamer/retail_video_no_ntp.yml:$(COMPOSE)/dlstreamer/queuing_video_no_ntp.yml:$(COMPOSE)/scene_no_ntp.yml:$(COMPOSE)/web_default.yml:$(COMPOSE)/cams.yml)
$(eval SERVICES := $(strip pgserver web queuing-video retail-video scene))
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/ui/tc_out_of_box.py, '$(SERVICES)', true, /run/secrets/browser.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
orphaned-sensor: # NEX-T10398
$(call set-prefix)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_orphaned_sensor.py, 'pgserver web scene', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
reid-performance-degradation: # NEX-T10541
$(eval SERVICES := $(strip pgserver web queuing-video retail-video scene))
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/vdms.yml:$(COMPOSE)/dlstreamer/retail_video_reid.yml:$(COMPOSE)/dlstreamer/queuing_video_reid.yml:$(COMPOSE)/scene_reid.yml:$(COMPOSE)/web_default.yml:$(COMPOSE)/cams.yml)
$(eval override IMAGE_OLD := $(BASE_IMAGE))
$(eval BASE_IMAGE := $(IMAGE)-controller-test)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_reid_performance_degradation.py, '$(SERVICES)', true)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
$(eval override BASE_IMAGE := $(IMAGE_OLD))
reid-unique-count: # NEX-T10539
$(eval SERVICES := $(strip pgserver web queuing-video retail-video scene))
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/vdms.yml:$(COMPOSE)/dlstreamer/retail_video_reid.yml:$(COMPOSE)/dlstreamer/queuing_video_reid.yml:$(COMPOSE)/scene_reid.yml:$(COMPOSE)/web_default.yml:$(COMPOSE)/cams.yml)
$(eval override IMAGE_OLD := $(BASE_IMAGE))
$(eval BASE_IMAGE := $(IMAGE)-controller-test)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_reid_unique_count.py, '$(SERVICES)', true)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
$(eval override BASE_IMAGE := $(IMAGE_OLD))
reid-data-flow: # NEX-T19883
$(eval SERVICES := $(strip broker ntpserv pgserver vdms web scene))
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/vdms.yml:$(COMPOSE)/scene_reid.yml:$(COMPOSE)/web_default.yml:$(COMPOSE)/cams.yml)
$(eval override IMAGE_OLD := $(BASE_IMAGE))
$(eval BASE_IMAGE := $(IMAGE)-controller-test)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_reid_data_flow.py, '$(SERVICES)', true)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
$(eval override BASE_IMAGE := $(IMAGE_OLD))
reid-semantic-unique-count: # NEX-T19882
$(eval SERVICES := $(strip pgserver web queuing-video scene))
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/vdms.yml:$(COMPOSE)/dlstreamer/queuing_video_reid_semantic.yml:$(COMPOSE)/scene_reid.yml:$(COMPOSE)/web_default.yml:$(COMPOSE)/cams.yml)
$(eval override IMAGE_OLD := $(BASE_IMAGE))
$(eval BASE_IMAGE := $(IMAGE)-controller-test)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(eval export MODELS := all)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_reid_semantic_unique_count.py, '$(SERVICES)', true)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
$(eval override BASE_IMAGE := $(IMAGE_OLD))
rest-test: # NEX-T10464
$(eval COMPOSE_FILES := $(COMPOSE)/pgserver.yml:$(COMPOSE)/web.yml)
$(call common-recipe, $(COMPOSE_FILES), manager/tests/tc_rest_test.py, 'pgserver web', true, /run/secrets/controller.auth)
scene-import: # NEX-T13051
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/dlstreamer/retail_video.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml:$(COMPOSE)/cams.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/ui/tc_scene_import.py, 'pgserver web retail-video scene', true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
sensors-send-events: # NEX-T10456
$(eval IMAGE_OLD := $(BASE_IMAGE))
$(eval override BASE_IMAGE := $(IMAGE)-controller-test)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(if $(ANALYTICS),\
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/tracker.yml:$(COMPOSE)/controller_analytics.yml:$(COMPOSE)/web.yml) \
$(eval SERVICES := 'pgserver web tracker controller-analytics'),\
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml) \
$(eval SERVICES := 'pgserver web scene')\
)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_sensors_send_mqtt_messages.py, $(SERVICES), true, /run/secrets/controller.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
$(eval override BASE_IMAGE := $(IMAGE_OLD))
vdms-similarity-search: # NEX-T10516
$(eval override IMAGE_OLD := $(BASE_IMAGE))
$(eval override BASE_IMAGE := $(IMAGE)-controller-test)
$(call common-recipe, $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/vdms.yml:$(COMPOSE)/pgserver.yml, tests/functional/tc_vdms_similarity_search.py,'pgserver',true, /run/secrets/controller.auth)
$(eval override BASE_IMAGE := $(IMAGE_OLD))
visibility-regulated: export VISIBILITY_TOPIC := regulated
visibility-regulated: # NEX-T10582
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/dlstreamer/retail_video.yml:$(COMPOSE)/dlstreamer/queuing_video.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web_default.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/cams.yml)
$(eval SERVICES := $(strip pgserver web queuing-video retail-video scene))
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_camera_bound_visibility_regulated.py --visibility_topic $(VISIBILITY_TOPIC), '$(SERVICES)', true, /run/secrets/browser.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
visibility-unregulated: export VISIBILITY_TOPIC := unregulated
visibility-unregulated: # NEX-T19788
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/dlstreamer/retail_video.yml:$(COMPOSE)/dlstreamer/queuing_video.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web_default.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/cams.yml)
$(eval SERVICES := $(strip pgserver web queuing-video retail-video scene))
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_camera_bound_visibility_unregulated.py --visibility_topic $(VISIBILITY_TOPIC), '$(SERVICES)', true, /run/secrets/browser.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
visibility-none: export VISIBILITY_TOPIC := none
visibility-none: # NEX-T19789
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/dlstreamer/retail_video.yml:$(COMPOSE)/dlstreamer/queuing_video.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web_default.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/cams.yml)
$(eval SERVICES := $(strip pgserver web queuing-video retail-video scene))
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_camera_bound_visibility_none.py --visibility_topic $(VISIBILITY_TOPIC), '$(SERVICES)', true, /run/secrets/browser.auth)
$(eval SECRETSDIR := $(OLDSECRETSDIR))
pipeline-generation-test:
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_pipeline_generation.py --flags, '$(SERVICES)', true, /run/secrets/browser.auth)
# Run pipeline_runner integration tests.
# The PipelineRunner brings up its own Docker Compose stack (docker-compose-ppl.yaml),
# so no COMPOSE_FILES / common-recipe is needed here.
#
# Override device counts to enable GPU / NPU scenarios:
# make pipeline-runner-people GPU_DEVICE_COUNT=1
# make pipeline-runner-vehicles NPU_DEVICE_COUNT=1
# make pipeline-runner-integration GPU_DEVICE_COUNT=2 NPU_DEVICE_COUNT=1
#
GPU_DEVICE_COUNT ?= 0
NPU_DEVICE_COUNT ?= 0
PPL_VENV := $(CURDIR)/pipeline_runner/.venv
_PYTEST_PPL = cd .. && GPU_DEVICE_COUNT=$(GPU_DEVICE_COUNT) NPU_DEVICE_COUNT=$(NPU_DEVICE_COUNT) \
$(PPL_VENV)/bin/python -m pytest -v $(GENERATE_JUNITXML)
.PHONY: pipeline-runner-setup pipeline-runner-people pipeline-runner-vehicles pipeline-runner-integration
pipeline-runner-setup:
rm -rf $(PPL_VENV);
python3 -m venv $(PPL_VENV);
@$(PPL_VENV)/bin/pip install -q --upgrade pip
@$(PPL_VENV)/bin/pip install -q -r $(CURDIR)/pipeline_runner/requirements-ppl-test.txt
$(MAKE) -C $(CURDIR)/.. install-models init-sample-data
pipeline-runner-people: pipeline-runner-setup # NEX-T20170
$(_PYTEST_PPL) tests/pipeline_runner/test_people_models.py
pipeline-runner-vehicles: pipeline-runner-setup # NEX-T20170
$(_PYTEST_PPL) tests/pipeline_runner/test_vehicle_models.py
pipeline-runner-integration: pipeline-runner-people pipeline-runner-vehicles
remove-child-scenes-link: # NEX-T10520
$(eval IMAGE_OLD := $(BASE_IMAGE))
$(eval override BASE_IMAGE := $(IMAGE)-controller-test)
$(eval COMPOSE_FILES := $(COMPOSE)/dlstreamer/broker.yml:$(COMPOSE)/ntp.yml:$(COMPOSE)/pgserver.yml:$(COMPOSE)/scene.yml:$(COMPOSE)/web.yml)
$(eval OLDSECRETSDIR := $(SECRETSDIR))
$(eval SECRETSDIR := $(PWD)/manager/secrets)
$(call common-recipe, $(COMPOSE_FILES), tests/functional/tc_remove_linked_scene.py, 'pgserver web scene', true, /run/secrets/controller.auth)
$(eval override BASE_IMAGE := $(IMAGE_OLD))
$(eval SECRETSDIR := $(OLDSECRETSDIR))