From ac53b1165bb7e7948fdd6a19308f7805a9cf42f7 Mon Sep 17 00:00:00 2001
From: Julian Bouzas <julian.bouzas@collabora.com>
Date: Mon, 9 Sep 2019 08:52:36 -0400
Subject: [PATCH] test: move wireplumber tests into a 'wp' subfolder

---
 tests/meson.build            | 18 +-----------------
 tests/wp/meson.build         | 17 +++++++++++++++++
 tests/{ => wp}/properties.c  |  0
 tests/{ => wp}/proxy.c       |  0
 tests/{ => wp}/test-server.h |  0
 5 files changed, 18 insertions(+), 17 deletions(-)
 create mode 100644 tests/wp/meson.build
 rename tests/{ => wp}/properties.c (100%)
 rename tests/{ => wp}/proxy.c (100%)
 rename tests/{ => wp}/test-server.h (100%)

diff --git a/tests/meson.build b/tests/meson.build
index 655092e1..8f7c8329 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,17 +1 @@
-common_deps = [gobject_dep, gio_dep, wp_dep, pipewire_dep]
-common_env = [
-  'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
-  'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
-]
-
-test(
-  'test-properties',
-  executable('test-properties', 'properties.c', dependencies: common_deps),
-  env: common_env,
-)
-
-test(
-  'test-proxy',
-  executable('test-proxy', 'proxy.c', dependencies: common_deps),
-  env: common_env,
-)
+subdir('wp')
diff --git a/tests/wp/meson.build b/tests/wp/meson.build
new file mode 100644
index 00000000..655092e1
--- /dev/null
+++ b/tests/wp/meson.build
@@ -0,0 +1,17 @@
+common_deps = [gobject_dep, gio_dep, wp_dep, pipewire_dep]
+common_env = [
+  'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
+  'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
+]
+
+test(
+  'test-properties',
+  executable('test-properties', 'properties.c', dependencies: common_deps),
+  env: common_env,
+)
+
+test(
+  'test-proxy',
+  executable('test-proxy', 'proxy.c', dependencies: common_deps),
+  env: common_env,
+)
diff --git a/tests/properties.c b/tests/wp/properties.c
similarity index 100%
rename from tests/properties.c
rename to tests/wp/properties.c
diff --git a/tests/proxy.c b/tests/wp/proxy.c
similarity index 100%
rename from tests/proxy.c
rename to tests/wp/proxy.c
diff --git a/tests/test-server.h b/tests/wp/test-server.h
similarity index 100%
rename from tests/test-server.h
rename to tests/wp/test-server.h
-- 
GitLab