[Tests/Meson] Include unit tests for GSTMqtt in the meson build script
authorWook Song <wook16.song@samsung.com>
Thu, 20 May 2021 11:52:41 +0000 (20:52 +0900)
committerSangjung Woo <again4you@gmail.com>
Tue, 25 May 2021 09:21:42 +0000 (18:21 +0900)
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 <wook16.song@samsung.com>
tests/meson.build

index a386e81..2ac6fcd 100644 (file)
@@ -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',