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,6 +25,7 @@ if have_bash
endforeach endforeach
endif endif
if not meson.is_subproject()
test( test(
'check-missing-install-tag.py', 'check-missing-install-tag.py',
python, python,
@ -33,5 +34,6 @@ test(
suite : ['lint', 'no-valgrind'], suite : ['lint', 'no-valgrind'],
protocol : 'tap', protocol : 'tap',
) )
endif
subdir('lib') subdir('lib')