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:21:30 +0200 |
commit | cf5dd09e45861d7a0235aa096082d6f1a212eb1f (patch) | |
tree | dc9f7c1d0b9e50723d0db23bd9882a0b9b923caf | |
parent | b96f45b0573f440296bd3d0586c43bffca1da71c (diff) | |
download | mutter-cf5dd09e45861d7a0235aa096082d6f1a212eb1f.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
-rw-r--r-- | src/tests/meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/meson.build b/src/tests/meson.build index 1b0a93ed7..81150046b 100644 --- a/src/tests/meson.build +++ b/src/tests/meson.build @@ -242,6 +242,7 @@ test_cases += [ 'name': 'monitor-unit', 'suite': 'backend', 'sources': [ 'monitor-unit-tests.c', ], + 'depends': [ test_client ], }, { 'name': 'monitor-utils', @@ -252,6 +253,7 @@ test_cases += [ 'name': 'stage-views', 'suite': 'compositor', 'sources': [ 'stage-view-tests.c', ], + 'depends': [ test_client ], }, { 'name': 'anonymous-file', @@ -318,6 +320,7 @@ if have_native_tests 'name': 'pointer-constraints', 'suite': 'backends/native', 'sources': [ 'native-pointer-constraints.c' ], + 'depends': [ test_client ], }, { 'name': 'ref-test-sanity', @@ -467,6 +470,7 @@ if have_native_tests wayland_protocol_files['mutter-x11-interop']['protocol-code'], built_dbus_sources['meta-dbus-service-channel'], ], + 'depends': [ test_client ], }, ] if have_xwayland @@ -474,6 +478,7 @@ if have_native_tests { 'name': 'xwayland', 'suite': 'wayland', + 'depends': [ test_client ], 'sources': [ 'xwayland-tests.c', ], @@ -510,6 +515,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, ) |