dependencies: [ tests_dep ],
)
+tests_deps = []
foreach mock : mock_libs
- shared_library(
+ tests_deps += shared_library(
mock['name'],
mock.get('sources', [ '@0@.c'.format(mock['name']) ]),
override_options: [
# Must not link to any libvirt modules - libc only otherwise external
# libraries might unexpectedly leak file descriptors into commandhelper
# invalidating the test logic assumptions.
-executable(
+tests_deps += executable(
'commandhelper',
[ 'commandhelper.c' ],
dependencies: [
)
# This is a fake SSH we use from virnetsockettest
-executable(
+tests_deps += executable(
'ssh',
[ 'ssh.c' ],
dependencies: [
# default meson timeout
timeout = 30
endif
- test(data['name'], test_bin, env: tests_env, timeout: timeout)
+ test(data['name'], test_bin, env: tests_env, timeout: timeout, depends: tests_deps)
endforeach