Files
external_libcamera/test/gstreamer/meson.build
Vedant Paranjape 39c2d5dc95 test: gstreamer: Factor out code into a base class
A lot of code used in the single stream test is boiler plate and common
across every gstreamer test. Factor out this code into a base class
called GstreamerTest.

Also update the gstreamer_single_stream_test to use the GstreamerTest
base class.

Signed-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
2021-09-08 17:40:53 +09:00

20 lines
574 B
Meson

# SPDX-License-Identifier: CC0-1.0
if not gst_enabled
subdir_done()
endif
gstreamer_tests = [
['single_stream_test', 'gstreamer_single_stream_test.cpp'],
]
gstreamer_dep = dependency('gstreamer-1.0', required: true)
foreach t : gstreamer_tests
exe = executable(t[0], t[1], 'gstreamer_test.cpp',
dependencies : [libcamera_private, gstreamer_dep],
link_with : test_libraries,
include_directories : test_includes_internal)
test(t[0], exe, suite : 'gstreamer', is_parallel : false)
endforeach