diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2024-03-05 10:30:58 -0500 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2024-07-25 11:44:05 +0100 |
commit | d267fd6d89be8dd9274b058f05230712cf9773b8 (patch) | |
tree | e1d626ad4db18b048458e867937dd278f27c792b /test/gstreamer/meson.build | |
parent | a61241eb8b9ff583d8c04773927f5460b3e83a01 (diff) |
test: gstreamer: Test memory lifetime
Test that everything works fine if a buffer outlives the pipeline.
[Kieran: Update test path with comments and clarify test case]
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/gstreamer/meson.build')
-rw-r--r-- | test/gstreamer/meson.build | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/gstreamer/meson.build b/test/gstreamer/meson.build index 37ad125e..b689f637 100644 --- a/test/gstreamer/meson.build +++ b/test/gstreamer/meson.build @@ -8,8 +8,11 @@ gstreamer_tests = [ {'name': 'single_stream_test', 'sources': ['gstreamer_single_stream_test.cpp']}, {'name': 'multi_stream_test', 'sources': ['gstreamer_multi_stream_test.cpp']}, {'name': 'device_provider_test', 'sources': ['gstreamer_device_provider_test.cpp']}, + {'name': 'memory_lifetime_test', 'sources': ['gstreamer_memory_lifetime_test.cpp'], + 'should_fail': true}, ] gstreamer_dep = dependency('gstreamer-1.0', required : true) +gstapp_dep = dependency('gstreamer-app-1.0', required : true) gstreamer_test_args = [] @@ -20,9 +23,10 @@ endif foreach test : gstreamer_tests exe = executable(test['name'], test['sources'], 'gstreamer_test.cpp', cpp_args : gstreamer_test_args, - dependencies : [libcamera_private, gstreamer_dep], + dependencies : [libcamera_private, gstreamer_dep, gstapp_dep], link_with : test_libraries, include_directories : test_includes_internal) - test(test['name'], exe, suite : 'gstreamer', is_parallel : false, env : gst_env) + test(test['name'], exe, suite : 'gstreamer', is_parallel : false, + env : gst_env, should_fail : test.get('should_fail', false)) endforeach |