diff options
| author | Matt Turner <mattst88@gmail.com> | 2024-12-19 21:48:49 -0500 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2025-06-08 17:30:55 +0000 |
| commit | 6c1da920185955f7c86af38787c8889203ec3fcb (patch) | |
| tree | 56a3220fe9b43b55e7a02f0ce512241a2fca7bdf | |
| parent | tests: Make `tests` dict elements dicts themselves (diff) | |
| download | wayland-6c1da920185955f7c86af38787c8889203ec3fcb.tar wayland-6c1da920185955f7c86af38787c8889203ec3fcb.tar.gz wayland-6c1da920185955f7c86af38787c8889203ec3fcb.tar.bz2 wayland-6c1da920185955f7c86af38787c8889203ec3fcb.tar.lz wayland-6c1da920185955f7c86af38787c8889203ec3fcb.tar.xz wayland-6c1da920185955f7c86af38787c8889203ec3fcb.tar.zst wayland-6c1da920185955f7c86af38787c8889203ec3fcb.zip | |
tests: Add support for specifying runtime dependencies
Signed-off-by: Matt Turner <mattst88@gmail.com>
| -rw-r--r-- | tests/meson.build | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build index cf3c4e8..44f1233 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -195,12 +195,14 @@ tests = { foreach test_name, test_extras : tests test_extra_sources = test_extras.get('extra_sources', []) + test_runtime_deps = test_extras.get('runtime_deps', []) test_sources = [ test_name + '.c' ] + test_extra_sources test_deps = [test_runner_dep, epoll_dep] bin = executable(test_name, test_sources, dependencies: test_deps) test( test_name, bin, + depends: test_runtime_deps, env: [ 'TEST_SRC_DIR=@0@'.format(meson.current_source_dir()), 'TEST_BUILD_DIR=@0@'.format(meson.current_build_dir()), |
