Commit 6d053ec0 authored by Simon McVittie's avatar Simon McVittie

tests: Explicitly depend on the GIR and typelib

In Meson since 0.55.0, having the test executable depend on the GIR
dependency is not enough to ensure that uninstalled GIR and typelib
files are generated: we also need to have the test itself depend on
the GIR build target.

It is not clear to me whether this is a workaround for a Meson
regression (if what libpeas previously did was meant to work), or a
solution to a libpeas bug (if it was never meant to be guaranteed to
work). For more details see
<https://github.com/mesonbuild/meson/issues/7756>.

Resolves: #40
Bug-Debian: https://bugs.debian.org/966951
parent 6eecccfa
Pipeline #214889 passed with stages
in 5 minutes and 28 seconds
......@@ -53,5 +53,10 @@ foreach test: libpeas_tests_sources
c_args: libpeas_tests_c_args,
)
test('test-@0@'.format(test_name), test_exe, env: test_env)
test(
'test-@0@'.format(test_name),
test_exe,
depends: [libintrospection_gir],
env: test_env,
)
endforeach
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment