🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.dev
Article #189

Re: [gentoo-dev] [PATCH 00/10] Support skippings tests in meson.eclass

#189
From: Sam James
Date: Wed, 11 Nov 2026 23:10
77 lines
4973 bytes
--=-=-=
Content-Type: text/plain

Alfred Wingate <parona@protonmail.com> writes:

> From: Alfred Wingate <parona@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

Merged last night, thanks!

>
> [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(-)

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEBBAEWCgCpFiEEJaa7iN2bdkxrVUHCc4QJ9SDfkZAFAmr09DIbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyNUE2QkI4OEREOUI3NjRDNkI1NTQx
QzI3Mzg0MDlGNTIwREY5MTkwDxxzYW1AZ2VudG9vLm9yZwAKCRBzhAn1IN+RkNFH
AQCwOs6lXvMd6VSII3LPXVURe0OnmzMt/HC8J9eVR5YdXAD+JZQkNWdTKcb+qPCf
Fxw9KquYKkmN/dW3cNYcn/SvBgw=
=cQ8D
-----END PGP SIGNATURE-----
--=-=-=--
Technical Details
Message-ID: <NYpC1-bjx0-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
References: <NVWE9-9V4a-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Sam James <sam@gentoo.org>
Newsgroups: linux.gentoo.dev
Subject: Re: [gentoo-dev] [PATCH 00/10] Support skippings tests in meson.eclass
Date: Thu, 12 Nov 2026 00:10:01 +0100
Message-ID: <NYpC1-bjx0-5@gated-at.bofh.it>
References: <NVWE9-9V4a-1@gated-at.bofh.it>
X-Original-To: gentoo-dev@lists.gentoo.org
Organization: Gentoo
User-Agent: mu4e 1.14.4; emacs 32.0.50
List-ID: Gentoo Linux mail <gentoo-dev.gentoo.org>
Reply-To: gentoo-dev@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha512; protocol="application/pgp-signature"
Approved: robomod@news.nic.it
Lines: 77
Sender: robomod@news.nic.it
X-Original-Cc: "base-system@gentoo.org" <base-system@gentoo.org>,
  "eschwartz@gentoo.org" <eschwartz@gentoo.org>,  "inbox@peterleese.org"
 <inbox@peterleese.org>,  "gstreamer@gentoo.org" <gstreamer@gentoo.org>,
  "chewi@gentoo.org" <chewi@gentoo.org>,  Alfred Wingate
 <parona@protonmail.com>
X-Original-Date: Wed, 11 Nov 2026 23:03:14 +0000
X-Original-Message-ID: <874idnc6od.fsf@gentoo.org>
X-Original-References: <20261105034814.1035529-1-parona@protonmail.com>