Article View: linux.gentoo.dev
Article #87[gentoo-dev] [PATCH 00/10] Support skippings tests in meson.eclass
From: Alfred Wingate
Date: Thu, 05 Nov 2026 03:50
Date: Thu, 05 Nov 2026 03:50
58 lines
4306 bytes
4306 bytes
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 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
Technical Details
Message-ID:
<NVWE9-9V4a-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod From: Alfred Wingate <parona@protonmail.com> Newsgroups: linux.gentoo.dev Subject: [gentoo-dev] [PATCH 00/10] Support skippings tests in meson.eclass Date: Thu, 05 Nov 2026 04:50:01 +0100 Message-ID: <NVWE9-9V4a-1@gated-at.bofh.it> X-Original-To: "gentoo-dev@lists.gentoo.org" <gentoo-dev@lists.gentoo.org> Feedback-ID: 25092314:user:proton X-Pm-Message-ID: 683f08ce0714b85f5a12164f3096c86fea889e17 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: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Approved: robomod@news.nic.it Lines: 58 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: "base-system@gentoo.org" <base-system@gentoo.org>, "sam@gentoo.org" <sam@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: Thu, 05 Nov 2026 03:48:37 +0000 X-Original-Message-ID: <20261105034814.1035529-1-parona@protonmail.com>