🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.dev
Article #88

[gentoo-dev] [PATCH 08/10] media-libs/libspng: use eclass to skip tests

#88
From: Alfred Wingate
Date: Thu, 05 Nov 2026 04:00
45 lines
2755 bytes
From: Alfred Wingate <parona@protonmail.com>

Closes: https://bugs.gentoo.org/969766
Signed-off-by: Alfred Wingate <parona@protonmail.com>
---
 media-libs/libspng/libspng-0.7.4.ebuild | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/media-libs/libspng/libspng-0.7.4.ebuild b/media-libs/libspng/libspng-0.7.4.ebuild
index 0e1c1dec892dd..3ac1b59e08b06 100644
--- a/media-libs/libspng/libspng-0.7.4.ebuild
+++ b/media-libs/libspng/libspng-0.7.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2024-2025 Gentoo Authors
+# Copyright 2024-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -37,21 +37,12 @@ src_configure() {
 }
 
 src_test() {
-	local -a tests
-	tests=( $(meson test --list -C "${BUILD_DIR}") )
-
-	local -a skip_tests=(
+	local -a EMESON_SKIP_TESTS=(
 		# Incompatabilities with >=libpng-1.6.47
 		# bug #956692
 		ch1n3p04
 		ch2n3p08
 	)
 
-	for test_index in ${!tests[@]}; do
-		if [[ ${skip_tests[@]} =~ ${tests[${test_index}]} ]]; then
-			unset tests[${test_index}]
-		fi
-	done
-
-	meson_src_test ${tests[@]}
+	meson_src_test
 }
-- 
2.56.0
Technical Details
Message-ID: <NVWNP-9V7G-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!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!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Alfred Wingate <parona@protonmail.com>
Newsgroups: linux.gentoo.dev
Subject: [gentoo-dev] [PATCH 08/10] media-libs/libspng: use eclass to skip tests
Date: Thu, 05 Nov 2026 05:00:01 +0100
Message-ID: <NVWNP-9V7G-1@gated-at.bofh.it>
References: <NVWE9-9V4a-1@gated-at.bofh.it>
Feedback-ID: 25092314:user:proton
X-Pm-Message-ID: ad357e01bc5415d476b6c963ca7aa9a727fb7854
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: 45
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:36 +0000
X-Original-Message-ID: <20261105034814.1035529-9-parona@protonmail.com>
X-Original-References: <20261105034814.1035529-1-parona@protonmail.com>