diff options
author | Simon McVittie <smcv@debian.org> | 2020-09-18 11:31:52 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2020-09-18 11:35:03 +0100 |
commit | 6d053ec0a4108be59f5e30a04ab4e6539e694e53 (patch) | |
tree | 4259d316958d73cfe13605f5647bfdbc2a54cc3b | |
parent | 6eecccfa21d6e226d0d6bc011c592bfee3c3cbf1 (diff) | |
download | libpeas-wip/issue40.tar.gz |
tests: Explicitly depend on the GIR and typelibwip/issue40
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: https://gitlab.gnome.org/GNOME/libpeas/-/issues/40
Bug-Debian: https://bugs.debian.org/966951
-rw-r--r-- | tests/libpeas/meson.build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/libpeas/meson.build b/tests/libpeas/meson.build index 32cf5e9..c95190a 100644 --- a/tests/libpeas/meson.build +++ b/tests/libpeas/meson.build @@ -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 |