[Pipewire-devel] [PATCH wireplumber 2/2] tests: Make dbus-based tests depend on dbus option

Haelwenn (lanodan) Monnier contact at hacktivis.me
Sun Sep 25 00:16:45 UTC 2022


---
 tests/modules/meson.build | 14 ++++++++------
 tests/wp/meson.build      | 15 ++++++++-------
 2 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/tests/modules/meson.build b/tests/modules/meson.build
index 28f7e1d..c2497b9 100644
--- a/tests/modules/meson.build
+++ b/tests/modules/meson.build
@@ -7,12 +7,14 @@ common_args = [
   '-DG_LOG_USE_STRUCTURED',
 ]
 
-test(
-  'test-reserve-device',
-  executable('test-reserve-device', 'reserve-device.c',
-    dependencies: common_deps, c_args: common_args),
-  env: common_env,
-)
+if get_option('dbus')
+  test(
+    'test-reserve-device',
+    executable('test-reserve-device', 'reserve-device.c',
+      dependencies: common_deps, c_args: common_args),
+    env: common_env,
+  )
+endif
 
 test(
   'test-file-monitor',
diff --git a/tests/wp/meson.build b/tests/wp/meson.build
index 01bca57..9a96c0f 100644
--- a/tests/wp/meson.build
+++ b/tests/wp/meson.build
@@ -91,13 +91,14 @@ test(
   env: common_env,
 )
 
-test(
-  'test-dbus',
-  executable('test-dbus', 'dbus.c',
-      dependencies: common_deps, c_args: common_args),
-  env: common_env,
-)
-
+if get_option('dbus')
+  test(
+    'test-dbus',
+    executable('test-dbus', 'dbus.c',
+        dependencies: common_deps, c_args: common_args),
+    env: common_env,
+  )
+endif
 
 test(
   'test-transition',
-- 
2.35.1



More information about the Pipewire-devel mailing list