diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2023-04-18 23:45:30 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2023-05-15 19:05:00 +0200 |
commit | 28bd3da21abb3810fa098954d8070f08059df204 (patch) | |
tree | dbb48b3b7134a00a019995112a9d95e22b46612a | |
parent | 2625edec103eb4a85cb77482d385bb903de898b2 (diff) | |
download | mutter-28bd3da21abb3810fa098954d8070f08059df204.tar.gz |
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2970>
-rw-r--r-- | src/tests/meson.build | 7 |
1 files changed, 7 insertions, 0 deletions
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, ) |