mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
tests: Add support for specifying runtime dependencies
Signed-off-by: Matt Turner <mattst88@gmail.com>
(cherry picked from commit 6c1da92018)
This commit is contained in:
parent
1d6fba989d
commit
a834596d4c
1 changed files with 2 additions and 0 deletions
|
|
@ -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()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue