From: Alfred Wingate <paro…@protonmail.com>
Now that meson 1.12.0 has added support for skipping individual tests
with --exclude[1]. It would make sense to add support in the eclass so
that ebuilds can easily use it in a similar way to CMAKE_SKIP_TESTS in
cmake.eclass.
This is done with two new eclass variables EMESON_SKIP_TEST_SUITES which
maps to --no-suite and EMESON_SKIP_TESTS which maps to --exclude.
Issue is that older meson needs handling as well unless the eclasses
requirements are raised. So with this patchset support is added for this in
a similar vein to how it has been handled in some ebuilds previously,
but in a more generalised way so that the behavior matches --exclude.
An ugly aspect for the older meson is the xargs which is to guard
against a hypothetical scenario where the project has so many tests or
long test names that it goes over ARGS_MAX. Using xargs means that it
won't cause a failure on its own, but testlog.txt's for previous runs
would be lost if it needs to be invoked more than once.
Codeberg PR: https://codeberg.org/gentoo/gentoo/pulls/1971
[1]: https://github.com/mesonbuild/meson/commit/16a74728022d35a0be80262a5a86daeba7d3db53
Alfred Wingate (10):
meson.eclass: support skipping tests
media-libs/gst-plugins-bad: use eclass to skip tests
media-libs/gst-plugins-base: use eclass to skip tests
media-libs/gstreamer-editing-services: use eclass to skip tests
media-libs/gstreamer: use eclass to skip tests
media-plugins/gst-plugins-libav: use eclass to skip tests
media-libs/gst-plugins-good: use eclass to skip tests
media-libs/libspng: use eclass to skip tests
dev-libs/weston: use eclass to skip tests
net-misc/kea: use eclass to skip tests
dev-libs/weston/weston-14.0.2-r1.ebuild | 11 ++--
dev-libs/weston/weston-15.0.1.ebuild | 9 ++--
dev-libs/weston/weston-16.0.2.ebuild | 9 ++--
dev-libs/weston/weston-9999.ebuild | 9 ++--
eclass/meson.eclass | 54 +++++++++++++++++--
.../gst-plugins-bad-1.26.11.ebuild | 26 ++-------
.../gst-plugins-base-1.26.11.ebuild | 28 ++--------
.../gst-plugins-good-1.26.11.ebuild | 26 ++-------
.../gstreamer-editing-services-1.26.11.ebuild | 28 ++--------
media-libs/gstreamer/gstreamer-1.26.11.ebuild | 25 +--------
media-libs/libspng/libspng-0.7.4.ebuild | 15 ++----
.../gst-plugins-libav-1.26.11.ebuild | 25 +--------
net-misc/kea/kea-3.0.3-r1.ebuild | 38 ++++---------
net-misc/kea/kea-3.2.0-r1.ebuild | 40 ++++----------
net-misc/kea/kea-3.2.0.ebuild | 38 ++++---------
net-misc/kea/kea-9999.ebuild | 40 ++++----------
16 files changed, 135 insertions(+), 286 deletions(-)
--
2.56.0