🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.dev
Article #90

[gentoo-dev] [PATCH 09/10] dev-libs/weston: use eclass to skip tests

#90
From: Alfred Wingate
Date: Thu, 05 Nov 2026 04:00
102 lines
4721 bytes
From: Alfred Wingate <parona@protonmail.com>

Signed-off-by: Alfred Wingate <parona@protonmail.com>
---
 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 ++++++---
 4 files changed, 25 insertions(+), 13 deletions(-)

diff --git a/dev-libs/weston/weston-14.0.2-r1.ebuild b/dev-libs/weston/weston-14.0.2-r1.ebuild
index 4450f0e3719a8..165b8b83e59dc 100644
--- a/dev-libs/weston/weston-14.0.2-r1.ebuild
+++ b/dev-libs/weston/weston-14.0.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -145,9 +145,12 @@ src_test() {
 	xdg_environment_reset
 	addwrite /dev/dri/
 
-	# xwayland test can fail if X11 socket already exists.
-	cd "${BUILD_DIR}" || die
-	meson test $(meson test --list | grep -Exv "xwayland") || die
+	local -a EMESON_SKIP_TESTS=(
+		# xwayland test can fail if X11 socket already exists.
+		weston:xwayland
+	)
+
+	meson_src_test
 }
 
 src_install() {
diff --git a/dev-libs/weston/weston-15.0.1.ebuild b/dev-libs/weston/weston-15.0.1.ebuild
index 752ad7f6313c8..5fef5d417c1bb 100644
--- a/dev-libs/weston/weston-15.0.1.ebuild
+++ b/dev-libs/weston/weston-15.0.1.ebuild
@@ -149,9 +149,12 @@ src_test() {
 	xdg_environment_reset
 	addwrite /dev/dri/
 
-	# xwayland test can fail if X11 socket already exists.
-	cd "${BUILD_DIR}" || die
-	meson test $(meson test --list | grep -Exv "weston:xwayland") || die
+	local -a EMESON_SKIP_TESTS=(
+		# xwayland test can fail if X11 socket already exists.
+		weston:xwayland
+	)
+
+	meson_src_test
 }
 
 src_install() {
diff --git a/dev-libs/weston/weston-16.0.2.ebuild b/dev-libs/weston/weston-16.0.2.ebuild
index c12fbfe0fa628..685fb2cfad242 100644
--- a/dev-libs/weston/weston-16.0.2.ebuild
+++ b/dev-libs/weston/weston-16.0.2.ebuild
@@ -140,9 +140,12 @@ src_test() {
 	xdg_environment_reset
 	addwrite /dev/dri/
 
-	# xwayland test can fail if X11 socket already exists.
-	cd "${BUILD_DIR}" || die
-	meson test $(meson test --list | grep -Exv "weston:xwayland") || die
+	local -a EMESON_SKIP_TESTS=(
+		# xwayland test can fail if X11 socket already exists.
+		weston:xwayland
+	)
+
+	meson_src_test
 }
 
 src_install() {
diff --git a/dev-libs/weston/weston-9999.ebuild b/dev-libs/weston/weston-9999.ebuild
index c12fbfe0fa628..685fb2cfad242 100644
--- a/dev-libs/weston/weston-9999.ebuild
+++ b/dev-libs/weston/weston-9999.ebuild
@@ -140,9 +140,12 @@ src_test() {
 	xdg_environment_reset
 	addwrite /dev/dri/
 
-	# xwayland test can fail if X11 socket already exists.
-	cd "${BUILD_DIR}" || die
-	meson test $(meson test --list | grep -Exv "weston:xwayland") || die
+	local -a EMESON_SKIP_TESTS=(
+		# xwayland test can fail if X11 socket already exists.
+		weston:xwayland
+	)
+
+	meson_src_test
 }
 
 src_install() {
-- 
2.56.0
Technical Details
Message-ID: <NVWNP-9V7G-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.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.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Alfred Wingate <parona@protonmail.com>
Newsgroups: linux.gentoo.dev
Subject: [gentoo-dev] [PATCH 09/10] dev-libs/weston: use eclass to skip tests
Date: Thu, 05 Nov 2026 05:00:01 +0100
Message-ID: <NVWNP-9V7G-3@gated-at.bofh.it>
References: <NVWE9-9V4a-1@gated-at.bofh.it>
Feedback-ID: 25092314:user:proton
X-Pm-Message-ID: f6be8adbeb804b029f07f56fb6de2d79da4ac90c
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: 102
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:49:40 +0000
X-Original-Message-ID: <20261105034814.1035529-10-parona@protonmail.com>
X-Original-References: <20261105034814.1035529-1-parona@protonmail.com>