🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.dev
Article #136

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

#136
From: Sam James
Date: Sat, 07 Nov 2026 04:10
82 lines
5145 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
>
> [1]: https://github.com/mesonbuild/meson/commit/16a74728022d35a0be80262a5a86daeba7d3db53

LGTM, and thank you very much for doing this.

I'd prefer to have the somewhat ugly older-meson fallback rather than
cranking up the min meson requirement in the eclass for now.

sam

>
> 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-----

iQEBBAEWCgCpFiEEJaa7iN2bdkxrVUHCc4QJ9SDfkZAFAmruozcbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyNUE2QkI4OEREOUI3NjRDNkI1NTQx
QzI3Mzg0MDlGNTIwREY5MTkwDxxzYW1AZ2VudG9vLm9yZwAKCRBzhAn1IN+RkBQt
AQChW4uWvIMgQPhJ6MTJ6oxSY82UcX96Qd5IzEp1eNI8zwEAn45gUfqDWnTO6dS6
Mc+SEmj/Mz3t6lVDbV+HCeIt8Qk=
=vZmp
-----END PGP SIGNATURE-----
--=-=-=--
Technical Details
Message-ID: <NWFUB-akc8-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.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!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.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: Sat, 07 Nov 2026 05:10:01 +0100
Message-ID: <NWFUB-akc8-1@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 31.1
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: 82
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: Sat, 07 Nov 2026 04:04:07 +0000
X-Original-Message-ID: <87eccxthhk.fsf@gentoo.org>
X-Original-References: <20261105034814.1035529-1-parona@protonmail.com>