From f1257d7c4d54699de88ce868f446a461084abb9e Mon Sep 17 00:00:00 2001 From: Wook Song Date: Thu, 20 May 2021 20:52:41 +0900 Subject: [PATCH] [Tests/Meson] Include unit tests for GSTMqtt in the meson build script This patch modifies the meson build script to generate and run the executable for the unit tests of the GSTMqtt elements. Signed-off-by: Wook Song --- tests/meson.build | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/meson.build b/tests/meson.build index a386e81..2ac6fcd 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -116,6 +116,17 @@ if gtest_dep.found() test('unittest_join', unittest_join, env: testenv) + # Run unittest_mqtt + if mqtt_support_is_available + unittest_mqtt = executable('unittest_mqtt', + join_paths('gstreamer_mqtt', 'unittest_mqtt.cc'), + dependencies: [nnstreamer_unittest_deps, unittest_util_dep], + install: get_option('install-test'), + install_dir: unittest_install_dir) + + test('unittest_mqtt', unittest_mqtt, env: testenv) + endif + # Run unittest_src_iio if build_platform != 'macos' unittest_src_iio = executable('unittest_src_iio', -- 2.7.4