From 28bd3da21abb3810fa098954d8070f08059df204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 18 Apr 2023 23:45:30 +0200 Subject: [PATCH] tests/meson: Make tests depending on test-client to actually depend on it It allows meson to rebuild the client-related sources when a single test is running using the client, also ensuring that test-run dependencies are correctly setup Part-of: --- src/tests/meson.build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tests/meson.build b/src/tests/meson.build index 65c6392bc..558971ae8 100644 --- a/src/tests/meson.build +++ b/src/tests/meson.build @@ -243,6 +243,7 @@ test_cases += [ 'name': 'monitor-unit', 'suite': 'backend', 'sources': [ 'monitor-unit-tests.c', ], + 'depends': [ test_client ], }, { 'name': 'monitor-utils', @@ -253,6 +254,7 @@ test_cases += [ 'name': 'stage-views', 'suite': 'compositor', 'sources': [ 'stage-view-tests.c', ], + 'depends': [ test_client ], }, { 'name': 'anonymous-file', @@ -319,6 +321,7 @@ if have_native_tests 'name': 'pointer-constraints', 'suite': 'backends/native', 'sources': [ 'native-pointer-constraints.c' ], + 'depends': [ test_client ], }, { 'name': 'ref-test-sanity', @@ -457,6 +460,7 @@ if have_native_tests dummy_protocol_code, wayland_test_utils, ], + 'depends': [ test_client ], }, ] if have_xwayland @@ -471,10 +475,12 @@ if have_native_tests wayland_protocol_files['mutter-x11-interop']['protocol-code'], built_dbus_sources['meta-dbus-service-channel'], ], + 'depends': [ test_client ], }, { 'name': 'xwayland', 'suite': 'wayland', + 'depends': [ test_client ], 'sources': [ 'xwayland-tests.c', ], @@ -511,6 +517,7 @@ if have_native_tests test(test_case['name'], test_executable, suite: ['core', 'mutter/' + test_case['suite']], env: test_env, + depends: test_case.get('depends', []), is_parallel: false, timeout: 60, )