media-libs/libspng: use eclass to skip tests

Closes: https://bugs.gentoo.org/969766
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1971
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alfred Wingate
2026-11-10 22:19:31 +00:00
committed by Sam James
parent 96dcfd5869
commit b1cae0909d
+3 -12
View File
@@ -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
}