tests: Don't check for missing install_tag if GLib is a subproject

The test script checks the entire Meson build, not just GLib, so it will
fail if GLib is a fallback subproject within some larger project that
does not use `install_tag` as systematically as GLib does.

In particular, if the larger project has a very conservative minimum
Meson version (like for example dbus), it might not be possible to
add `install_tag` to it.

Resolves: https://gitlab.gnome.org/GNOME/glib/-/issues/3625
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2025-02-28 11:52:09 +00:00
parent 69462f4921
commit 12171f6fe7

View File

@ -25,13 +25,15 @@ if have_bash
endforeach
endif
test(
'check-missing-install-tag.py',
python,
args : ['-B', files('check-missing-install-tag.py')],
env : test_env,
suite : ['lint', 'no-valgrind'],
protocol : 'tap',
)
if not meson.is_subproject()
test(
'check-missing-install-tag.py',
python,
args : ['-B', files('check-missing-install-tag.py')],
env : test_env,
suite : ['lint', 'no-valgrind'],
protocol : 'tap',
)
endif
subdir('lib')