Thread View: linux.gentoo.dev
14 messages
14 total messages
Started by Alfred Wingate
Thu, 05 Nov 2026 03:50
[gentoo-dev] [PATCH 00/10] Support skippings tests in meson.eclass
Author: 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
[gentoo-dev] [PATCH 08/10] media-libs/libspng: use eclass to skip tests
Author: Alfred Wingate
Date: Thu, 05 Nov 2026 04:00
Date: Thu, 05 Nov 2026 04:00
45 lines
2755 bytes
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
[gentoo-dev] [PATCH 07/10] media-libs/gst-plugins-good: use eclass to skip tests
Author: Alfred Wingate
Date: Thu, 05 Nov 2026 04:00
Date: Thu, 05 Nov 2026 04:00
61 lines
3558 bytes
3558 bytes
From: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Alfred Wingate <parona@protonmail.com>
---
.../gst-plugins-good-1.26.11.ebuild | 26 +++----------------
1 file changed, 3 insertions(+), 23 deletions(-)
diff --git a/media-libs/gst-plugins-good/gst-plugins-good-1.26.11.ebuild b/media-libs/gst-plugins-good/gst-plugins-good-1.26.11.ebuild
index bf678a4834e16..9a61972b469d9 100644
--- a/media-libs/gst-plugins-good/gst-plugins-good-1.26.11.ebuild
+++ b/media-libs/gst-plugins-good/gst-plugins-good-1.26.11.ebuild
@@ -2,6 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+
GST_ORG_MODULE="gst-plugins-good"
inherit gstreamer-meson verify-sig virtualx
@@ -48,11 +49,7 @@ multilib_src_configure() {
}
multilib_src_test() {
- # Homebrew test skips for meson
- local -a tests
- tests=( $(meson test --list -C "${BUILD_DIR}") )
-
- local -a _skip_tests=(
+ local -a EMESON_SKIP_TESTS=(
# known flaky test bug #930448
# https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2803
elements_flvmux
@@ -61,23 +58,6 @@ multilib_src_test() {
elements_mpegaudioparse
)
- # Add suites which in this case are the project name
- if has_version ">=dev-build/meson-1.9.2"; then
- local -a skip_tests=()
- for skip_test in ${_skip_tests[@]}; do
- skip_tests+=( "${PN}:${skip_test}" )
- done
- else
- local -a skip_tests=( ${_skip_tests[@]} )
- fi
- unset _skip_tests
-
- for test_index in ${!tests[@]}; do
- if [[ ${skip_tests[@]} =~ ${tests[${test_index}]} ]]; then
- unset tests[${test_index}]
- fi
- done
-
# gstreamer_multilib_src_test doesn't pass arguments
- GST_GL_WINDOW=x11 virtx meson_src_test --timeout-multiplier 5 ${tests[@]}
+ GST_GL_WINDOW=x11 virtx meson_src_test --timeout-multiplier 5
}
--
2.56.0
[gentoo-dev] [PATCH 09/10] dev-libs/weston: use eclass to skip tests
Author: Alfred Wingate
Date: Thu, 05 Nov 2026 04:00
Date: Thu, 05 Nov 2026 04:00
102 lines
4721 bytes
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
[gentoo-dev] [PATCH 06/10] media-plugins/gst-plugins-libav: use eclass to skip tests
Author: Alfred Wingate
Date: Thu, 05 Nov 2026 04:00
Date: Thu, 05 Nov 2026 04:00
50 lines
3252 bytes
3252 bytes
From: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Alfred Wingate <parona@protonmail.com>
---
.../gst-plugins-libav-1.26.11.ebuild | 25 ++-----------------
1 file changed, 2 insertions(+), 23 deletions(-)
diff --git a/media-plugins/gst-plugins-libav/gst-plugins-libav-1.26.11.ebuild b/media-plugins/gst-plugins-libav/gst-plugins-libav-1.26.11.ebuild
index 3808590da7c69..d3bcdb7b5a2ec 100644
--- a/media-plugins/gst-plugins-libav/gst-plugins-libav-1.26.11.ebuild
+++ b/media-plugins/gst-plugins-libav/gst-plugins-libav-1.26.11.ebuild
@@ -34,32 +34,11 @@ PATCHES=(
)
multilib_src_test() {
- # Homebrew test skips for meson
- local -a tests
- tests=( $(meson test --list -C "${BUILD_DIR}") )
-
- local -a _skip_tests=(
+ local -a EMESON_SKIP_TESTS=(
# flaky to hanging
elements_avaudenc
)
- # Add suites which in this case are PN
- if has_version ">=dev-build/meson-1.10.0"; then
- local -a skip_tests=()
- for skip_test in ${_skip_tests[@]}; do
- skip_tests+=( "${MY_PN}:${skip_test}" )
- done
- else
- local -a skip_tests=( ${_skip_tests[@]} )
- fi
- unset _skip_tests
-
- for test_index in ${!tests[@]}; do
- if [[ ${skip_tests[@]} =~ ${tests[${test_index}]} ]]; then
- unset tests[${test_index}]
- fi
- done
-
# gstreamer_multilib_src_test doesn't pass arguments
- GST_GL_WINDOW=x11 virtx meson_src_test --timeout-multiplier 5 ${tests[@]}
+ GST_GL_WINDOW=x11 virtx meson_src_test --timeout-multiplier 5
}
--
2.56.0
[gentoo-dev] [PATCH 10/10] net-misc/kea: use eclass to skip tests
Author: Alfred Wingate
Date: Thu, 05 Nov 2026 04:00
Date: Thu, 05 Nov 2026 04:00
382 lines
13141 bytes
13141 bytes
From: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Alfred Wingate <parona@protonmail.com>
---
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 ++++++++------------------------
4 files changed, 40 insertions(+), 116 deletions(-)
diff --git a/net-misc/kea/kea-3.0.3-r1.ebuild b/net-misc/kea/kea-3.0.3-r1.ebuild
index 9ec5d52f7d70d..71356d05fe8aa 100644
--- a/net-misc/kea/kea-3.0.3-r1.ebuild
+++ b/net-misc/kea/kea-3.0.3-r1.ebuild
@@ -161,28 +161,14 @@ src_compile() {
}
src_test() {
- # Get list of all test suites into an associative array
- # the meson test --list returns either "kea / test_suite", "kea:shell-tests / test_suite" or
- # "kea:python-tests / test_suite"
- # Note: In meson >= 1.10 the format has changed to
- # the meson test --list returns either "kea:test_suite", "shell-tests - kea:test_suite" or
- # "python-tests - kea:test_suite"
- #
- # Discard the shell tests as we can't run shell tests in sandbox
-
- pushd "${BUILD_DIR}" || die
- local -A TEST_SUITES
-
- while IFS="/: " read -a words ; do
- if [[ "${words[0]}" != "shell-tests" ]] && [[ "${words[2]}" != "shell-tests" ]]; then
- TEST_SUITES["${words[-1]}"]=1
- fi
- done < <(meson test --list || die)
- popd
+ local -a EMESON_SKIP_TEST_SUITES=(
+ # Discard the shell tests as we can't run shell tests in sandbox
+ shell-tests
+ )
# Some other tests will fail for interface access restrictions, we have to remove the test suites those tests
# belong to
- local SKIP_TESTS=(
+ local -a EMESON_SKIP_TESTS=(
dhcp-radius-tests
kea-log-buffer_logger_test.sh
kea-log-console_test.sh
@@ -194,7 +180,7 @@ src_test() {
# skip shell tests that require a running instance of MySQL
if use mysql; then
- SKIP_TESTS+=(
+ EMESON_SKIP_TESTS+=(
kea-mysql-tests
dhcp-mysql-lib-tests
dhcp-forensic-log-libloadtests
@@ -203,7 +189,7 @@ src_test() {
# skip shell tests that require a running instance of PgSQL
if use postgres; then
- SKIP_TESTS+=(
+ EMESON_SKIP_TESTS+=(
kea-pgsql-tests
dhcp-pgsql-lib-tests
dhcp-forensic-log-libloadtests
@@ -211,14 +197,14 @@ src_test() {
fi
if use kerberos; then
- SKIP_TESTS+=(
+ EMESON_SKIP_TESTS+=(
ddns-gss-tsig-tests
)
fi
if [[ $(tc-get-ptr-size) -eq 4 ]]; then
# see https://bugs.gentoo.org/958171 for reason for skipping these tests
- SKIP_TESTS+=(
+ EMESON_SKIP_TESTS+=(
kea-util-tests
kea-dhcpsrv-tests
dhcp-ha-lib-tests
@@ -226,11 +212,7 @@ src_test() {
)
fi
- for SKIP in ${SKIP_TESTS[@]}; do
- unset TEST_SUITES["${SKIP}"]
- done
-
- meson_src_test ${!TEST_SUITES[@]}
+ meson_src_test
}
install_shell() {
diff --git a/net-misc/kea/kea-3.2.0-r1.ebuild b/net-misc/kea/kea-3.2.0-r1.ebuild
index e51ea0831aaf5..aef7e5a0047ed 100644
--- a/net-misc/kea/kea-3.2.0-r1.ebuild
+++ b/net-misc/kea/kea-3.2.0-r1.ebuild
@@ -157,29 +157,14 @@ src_compile() {
}
src_test() {
- # Get list of all test suites into an associative array
- # the meson test --list returns either "kea / test_suite", "kea:shell-tests / test_suite" or
- # "kea:python-tests / test_suite"
- # Note: In meson >= 1.10 the format has changed to
- # the meson test --list returns either "kea:test_suite", "shell-tests - kea:test_suite" or
- # "python-tests - kea:test_suite"
- #
- # Discard the shell tests as we can't run shell tests in sandbox
-
- pushd "${BUILD_DIR}" || die
-
- local -A test_suites
- local -a words
- while IFS="/: " read -ra words ; do
- if [[ "${words[0]}" != "shell-tests" ]] && [[ "${words[2]}" != "shell-tests" ]]; then
- test_suites["${words[-1]}"]=1
- fi
- done < <(meson test --list || die)
- popd || die
+ local -a EMESON_SKIP_TEST_SUITES=(
+ # Discard the shell tests as we can't run shell tests in sandbox
+ shell-tests
+ )
# Some other tests will fail for interface access restrictions, we have to remove the test suites those tests
# belong to
- local -a skip_tests=(
+ local -a EMESON_SKIP_TESTS=(
dhcp-radius-tests
kea-log-buffer_logger_test.sh
kea-log-console_test.sh
@@ -191,7 +176,7 @@ src_test() {
# skip shell tests that require a running instance of MySQL
if use mysql; then
- skip_tests+=(
+ EMESON_SKIP_TESTS+=(
kea-mysql-tests
dhcp-mysql-lib-tests
dhcp-forensic-log-libload-tests
@@ -200,7 +185,7 @@ src_test() {
# skip shell tests that require a running instance of PgSQL
if use postgres; then
- skip_tests+=(
+ EMESON_SKIP_TESTS+=(
kea-pgsql-tests
dhcp-pgsql-lib-tests
dhcp-forensic-log-libload-tests
@@ -208,14 +193,14 @@ src_test() {
fi
if use kerberos; then
- skip_tests+=(
+ EMESON_SKIP_TESTS+=(
ddns-gss-tsig-tests
)
fi
if [[ $(tc-get-ptr-size) -eq 4 ]]; then
# see https://bugs.gentoo.org/958171 for reason for skipping these tests
- skip_tests+=(
+ EMESON_SKIP_TESTS+=(
kea-util-tests
kea-dhcpsrv-tests
dhcp-ha-lib-tests
@@ -223,12 +208,7 @@ src_test() {
)
fi
- local name
- for name in ${skip_tests[@]}; do
- unset -v 'test_suites[${name}]'
- done
-
- meson_src_test "${!test_suites[@]}"
+ meson_src_test
}
install_shell() {
diff --git a/net-misc/kea/kea-3.2.0.ebuild b/net-misc/kea/kea-3.2.0.ebuild
index d42b39b2970d1..5dd6f0a4fec83 100644
--- a/net-misc/kea/kea-3.2.0.ebuild
+++ b/net-misc/kea/kea-3.2.0.ebuild
@@ -157,28 +157,14 @@ src_compile() {
}
src_test() {
- # Get list of all test suites into an associative array
- # the meson test --list returns either "kea / test_suite", "kea:shell-tests / test_suite" or
- # "kea:python-tests / test_suite"
- # Note: In meson >= 1.10 the format has changed to
- # the meson test --list returns either "kea:test_suite", "shell-tests - kea:test_suite" or
- # "python-tests - kea:test_suite"
- #
- # Discard the shell tests as we can't run shell tests in sandbox
-
- pushd "${BUILD_DIR}" || die
- local -A TEST_SUITES
-
- while IFS="/: " read -a words ; do
- if [[ "${words[0]}" != "shell-tests" ]] && [[ "${words[2]}" != "shell-tests" ]]; then
- TEST_SUITES["${words[-1]}"]=1
- fi
- done < <(meson test --list || die)
- popd
+ local -a EMESON_SKIP_TEST_SUITES=(
+ # Discard the shell tests as we can't run shell tests in sandbox
+ shell-tests
+ )
# Some other tests will fail for interface access restrictions, we have to remove the test suites those tests
# belong to
- local SKIP_TESTS=(
+ local -a EMESON_SKIP_TESTS=(
dhcp-radius-tests
kea-log-buffer_logger_test.sh
kea-log-console_test.sh
@@ -190,7 +176,7 @@ src_test() {
# skip shell tests that require a running instance of MySQL
if use mysql; then
- SKIP_TESTS+=(
+ EMESON_SKIP_TESTS+=(
kea-mysql-tests
dhcp-mysql-lib-tests
dhcp-forensic-log-libloadtests
@@ -199,7 +185,7 @@ src_test() {
# skip shell tests that require a running instance of PgSQL
if use postgres; then
- SKIP_TESTS+=(
+ EMESON_SKIP_TESTS+=(
kea-pgsql-tests
dhcp-pgsql-lib-tests
dhcp-forensic-log-libload-tests
@@ -207,14 +193,14 @@ src_test() {
fi
if use kerberos; then
- SKIP_TESTS+=(
+ EMESON_SKIP_TESTS+=(
ddns-gss-tsig-tests
)
fi
if [[ $(tc-get-ptr-size) -eq 4 ]]; then
# see https://bugs.gentoo.org/958171 for reason for skipping these tests
- SKIP_TESTS+=(
+ EMESON_SKIP_TESTS+=(
kea-util-tests
kea-dhcpsrv-tests
dhcp-ha-lib-tests
@@ -222,11 +208,7 @@ src_test() {
)
fi
- for SKIP in ${SKIP_TESTS[@]}; do
- unset TEST_SUITES["${SKIP}"]
- done
-
- meson_src_test ${!TEST_SUITES[@]}
+ meson_src_test
}
install_shell() {
diff --git a/net-misc/kea/kea-9999.ebuild b/net-misc/kea/kea-9999.ebuild
index 806a81494baca..ee132ca674b67 100644
--- a/net-misc/kea/kea-9999.ebuild
+++ b/net-misc/kea/kea-9999.ebuild
@@ -164,29 +164,14 @@ src_compile() {
}
src_test() {
- # Get list of all test suites into an associative array
- # the meson test --list returns either "kea / test_suite", "kea:shell-tests / test_suite" or
- # "kea:python-tests / test_suite"
- # Note: In meson >= 1.10 the format has changed to
- # the meson test --list returns either "kea:test_suite", "shell-tests - kea:test_suite" or
- # "python-tests - kea:test_suite"
- #
- # Discard the shell tests as we can't run shell tests in sandbox
-
- pushd "${BUILD_DIR}" || die
-
- local -A test_suites
- local -a words
- while IFS="/: " read -ra words ; do
- if [[ "${words[0]}" != "shell-tests" ]] && [[ "${words[2]}" != "shell-tests" ]]; then
- test_suites["${words[-1]}"]=1
- fi
- done < <(meson test --list || die)
- popd || die
+ local -a EMESON_SKIP_TEST_SUITES=(
+ # Discard the shell tests as we can't run shell tests in sandbox
+ shell-tests
+ )
# Some other tests will fail for interface access restrictions, we have to remove the test suites those tests
# belong to
- local -a skip_tests=(
+ local -a EMESON_SKIP_TESTS=(
dhcp-radius-tests
kea-log-buffer_logger_test.sh
kea-log-console_test.sh
@@ -198,7 +183,7 @@ src_test() {
# skip shell tests that require a running instance of MySQL
if use mysql; then
- skip_tests+=(
+ EMESON_SKIP_TESTS+=(
kea-mysql-tests
dhcp-mysql-lib-tests
dhcp-forensic-log-libload-tests
@@ -207,7 +192,7 @@ src_test() {
# skip shell tests that require a running instance of PgSQL
if use postgres; then
- skip_tests+=(
+ EMESON_SKIP_TESTS+=(
kea-pgsql-tests
dhcp-pgsql-lib-tests
dhcp-forensic-log-libload-tests
@@ -215,14 +200,14 @@ src_test() {
fi
if use kerberos; then
- skip_tests+=(
+ EMESON_SKIP_TESTS+=(
ddns-gss-tsig-tests
)
fi
if [[ $(tc-get-ptr-size) -eq 4 ]]; then
# see https://bugs.gentoo.org/958171 for reason for skipping these tests
- skip_tests+=(
+ EMESON_SKIP_TESTS+=(
kea-util-tests
kea-dhcpsrv-tests
dhcp-ha-lib-tests
@@ -230,12 +215,7 @@ src_test() {
)
fi
- local name
- for name in ${skip_tests[@]}; do
- unset -v 'test_suites[${name}]'
- done
-
- meson_src_test "${!test_suites[@]}"
+ meson_src_test
}
install_shell() {
--
2.56.0
[gentoo-dev] [PATCH 03/10] media-libs/gst-plugins-base: use eclass to skip tests
Author: Alfred Wingate
Date: Thu, 05 Nov 2026 04:00
Date: Thu, 05 Nov 2026 04:00
70 lines
3846 bytes
3846 bytes
From: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Alfred Wingate <parona@protonmail.com>
---
.../gst-plugins-base-1.26.11.ebuild | 28 +++----------------
1 file changed, 4 insertions(+), 24 deletions(-)
diff --git a/media-libs/gst-plugins-base/gst-plugins-base-1.26.11.ebuild b/media-libs/gst-plugins-base/gst-plugins-base-1.26.11.ebuild
index cf711cd6d77a8..f01c13bc0c572 100644
--- a/media-libs/gst-plugins-base/gst-plugins-base-1.26.11.ebuild
+++ b/media-libs/gst-plugins-base/gst-plugins-base-1.26.11.ebuild
@@ -2,6 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+
GST_ORG_MODULE="gst-plugins-base"
inherit flag-o-matic meson-multilib gstreamer-meson verify-sig virtualx
@@ -162,11 +163,7 @@ multilib_src_test() {
# User env may cause issues (notably dconf isnt multilib)
export GSETTINGS_BACKEND=memory
- # Homebrew test skips for meson
- local -a tests
- tests=( $(meson test --list -C "${BUILD_DIR}") )
-
- local -a _skip_tests=(
+ local -a EMESON_SKIP_TESTS=(
# flaky
elements_inputselector # tendency to timeout
elements_multisocketsink
@@ -176,7 +173,7 @@ multilib_src_test() {
)
# Affects abi_x86_32
- multilib_is_native_abi || _skip_tests+=(
+ multilib_is_native_abi || EMESON_SKIP_TESTS+=(
# failed ABI check
libs_libsabi
# ../glib-2.84.4/gobject/gtype.c:4159: type id '284' is invalid
@@ -185,23 +182,6 @@ multilib_src_test() {
elements_volume
)
- # Add suites which in this case are PN
- if has_version ">=dev-build/meson-1.10.0"; then
- local -a skip_tests=()
- for skip_test in ${_skip_tests[@]}; do
- skip_tests+=( "${PN}:${skip_test}" )
- done
- else
- local -a skip_tests=( ${_skip_tests[@]} )
- fi
- unset _skip_tests
-
- for test_index in ${!tests[@]}; do
- if [[ ${skip_tests[@]} =~ ${tests[${test_index}]} ]]; then
- unset tests[${test_index}]
- fi
- done
-
# gstreamer_multilib_src_test doesn't pass arguments
- GST_GL_WINDOW=x11 virtx meson_src_test --timeout-multiplier 5 ${tests[@]}
+ GST_GL_WINDOW=x11 virtx meson_src_test --timeout-multiplier 5
}
--
2.56.0
[gentoo-dev] [PATCH 01/10] meson.eclass: support skipping tests
Author: Alfred Wingate
Date: Thu, 05 Nov 2026 04:00
Date: Thu, 05 Nov 2026 04:00
99 lines
4897 bytes
4897 bytes
From: Alfred Wingate <parona@protonmail.com>
Meson 1.12.0 added support for skipping individual tests with --exclude.
Hook that up and homebrew a solution that works for older meson.
In practise the homebrewed solution lists all the tests in the test
suite, filters them out and explicitly runs the leftovers.
--no-suite is used early to filter out tests from the list, as meson
doesn't like explicitly running tests that match --no-suite in the same
command.
Signed-off-by: Alfred Wingate <parona@protonmail.com>
---
eclass/meson.eclass | 54 +++++++++++++++++++++++++++++++++++++++++----
1 file changed, 50 insertions(+), 4 deletions(-)
diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index e0d7a01783861..9164a5b9ec4ec 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -85,6 +85,16 @@ BDEPEND=">=dev-build/meson-1.2.3
# User-controlled environment variable containing arguments to be passed to
# meson in meson_src_configure.
+# @VARIABLE: EMESON_SKIP_TEST_SUITES
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# Array of test suites that should be skipped.
+
+# @VARIABLE: EMESON_SKIP_TESTS
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# Array of tests that should be skipped.
+
# @FUNCTION: _meson_env_array
# @INTERNAL
# @DESCRIPTION:
@@ -546,12 +556,48 @@ meson_src_test() {
local mesontestargs=(
--print-errorlogs
--num-processes "$(makeopts_jobs "${MAKEOPTS}")"
- "$@"
)
- set -- meson test "${mesontestargs[@]}"
- echo "$@" >&2
- "$@"
+ if [[ -n ${EMESON_SKIP_TEST_SUITES} || -n ${EMESON_SKIP_TESTS} ]]; then
+ if has_version -b ">=dev-build/meson-1.12.0"; then
+ mesontestargs+=( "${EMESON_SKIP_TEST_SUITES[@]/#/--no-suite=}" "${EMESON_SKIP_TESTS[@]/#/--exclude=}" )
+ else
+ local -a tests=()
+ readarray -t tests < <(meson test --list -C "${BUILD_DIR}" "${EMESON_SKIP_TEST_SUITES[@]/#/--no-suite=}" 2>/dev/null )
+
+ local test_index
+ for test_index in "${!tests[@]}"; do
+ local test_name="${tests[${test_index}]}"
+
+ # Strip test suites while keeping subproject name to match --exclude behavior later on
+ test_name="${test_name##* - }"
+ # Override test name, cannot call test with pretty printed suites included
+ tests[${test_index}]="${test_name}"
+
+ # --exclude matches subproject:testname or testname
+ if [[ ${EMESON_SKIP_TESTS[@]} =~ ${test_name} ]] || \
+ [[ ${EMESON_SKIP_TESTS[@]} =~ ${test_name##*:} ]]; then
+ unset tests[${test_index}]
+ fi
+ done
+
+ # Handle case where you skip everything. Otherwise every test would run instead
+ if [[ ${#tests[@]} -eq 0 ]]; then
+ ewarn "Skipped all tests or no tests defined."
+ return 0
+ fi
+ fi
+ fi
+
+ set -- meson test "${mesontestargs[@]}" "$@"
+ if [[ -z ${tests[@]} ]]; then
+ echo "$@" >&2
+ "$@"
+ else
+ # Address ARGS_MAX for older meson test skipping
+ # Note: meson doesn't append to testlog.txt on new invocations, so logs may be lost.
+ printf '%s\0' "${tests[@]}" | xargs -0 -t "$@"
+ fi
local rv=$?
[[ ${rv} -eq 0 ]] || die -n "tests failed"
--
2.56.0
[gentoo-dev] [PATCH 02/10] media-libs/gst-plugins-bad: use eclass to skip tests
Author: Alfred Wingate
Date: Thu, 05 Nov 2026 04:00
Date: Thu, 05 Nov 2026 04:00
64 lines
3552 bytes
3552 bytes
From: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Alfred Wingate <parona@protonmail.com>
---
.../gst-plugins-bad-1.26.11.ebuild | 26 +++----------------
1 file changed, 3 insertions(+), 23 deletions(-)
diff --git a/media-libs/gst-plugins-bad/gst-plugins-bad-1.26.11.ebuild b/media-libs/gst-plugins-bad/gst-plugins-bad-1.26.11.ebuild
index 7497ef427e868..23d096c252dc0 100644
--- a/media-libs/gst-plugins-bad/gst-plugins-bad-1.26.11.ebuild
+++ b/media-libs/gst-plugins-bad/gst-plugins-bad-1.26.11.ebuild
@@ -2,6 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+
GST_ORG_MODULE="gst-plugins-bad"
inherit gstreamer-meson verify-sig virtualx
@@ -106,11 +107,7 @@ multilib_src_configure() {
}
multilib_src_test() {
- # Homebrew test skips for meson
- local -a tests
- tests=( $(meson test --list -C "${BUILD_DIR}") )
-
- local -a _skip_tests=(
+ local -a EMESON_SKIP_TESTS=(
# known flaky test bug #931737
elements_netsim
@@ -120,26 +117,9 @@ multilib_src_test() {
elements_aesdec
)
- # Add suites which in this case are PN
- if has_version ">=dev-build/meson-1.10.0"; then
- local -a skip_tests=()
- for skip_test in ${_skip_tests[@]}; do
- skip_tests+=( "${PN}:${skip_test}" )
- done
- else
- local -a skip_tests=( ${_skip_tests[@]} )
- fi
- unset _skip_tests
-
- for test_index in ${!tests[@]}; do
- if [[ ${skip_tests[@]} =~ ${tests[${test_index}]} ]]; then
- unset tests[${test_index}]
- fi
- done
-
# Tests are slower than upstream expects
local -x CK_DEFAULT_TIMEOUT=300
# gstreamer_multilib_src_test doesn't pass arguments
- GST_GL_WINDOW=x11 virtx meson_src_test --timeout-multiplier 5 ${tests[@]}
+ GST_GL_WINDOW=x11 virtx meson_src_test --timeout-multiplier 5
}
--
2.56.0
[gentoo-dev] [PATCH 05/10] media-libs/gstreamer: use eclass to skip tests
Author: Alfred Wingate
Date: Thu, 05 Nov 2026 04:00
Date: Thu, 05 Nov 2026 04:00
50 lines
3064 bytes
3064 bytes
From: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Alfred Wingate <parona@protonmail.com>
---
media-libs/gstreamer/gstreamer-1.26.11.ebuild | 25 ++-----------------
1 file changed, 2 insertions(+), 23 deletions(-)
diff --git a/media-libs/gstreamer/gstreamer-1.26.11.ebuild b/media-libs/gstreamer/gstreamer-1.26.11.ebuild
index 4f020063655cc..dc3b6394d22c2 100644
--- a/media-libs/gstreamer/gstreamer-1.26.11.ebuild
+++ b/media-libs/gstreamer/gstreamer-1.26.11.ebuild
@@ -77,32 +77,11 @@ multilib_src_configure() {
}
multilib_src_test() {
- # Homebrew test skips for meson
- local -a tests
- tests=( $(meson test --list -C "${BUILD_DIR}") )
-
- local -a _skip_tests=(
+ local -a EMESON_SKIP_TESTS=(
# flaky
gst_gstbin
)
- # Add suites which in this case are PN
- if has_version ">=dev-build/meson-1.10.0"; then
- local -a skip_tests=()
- for skip_test in ${_skip_tests[@]}; do
- skip_tests+=( "${PN}:${skip_test}" )
- done
- else
- local -a skip_tests=( ${_skip_tests[@]} )
- fi
- unset _skip_tests
-
- for test_index in ${!tests[@]}; do
- if [[ ${skip_tests[@]} =~ ${tests[${test_index}]} ]]; then
- unset tests[${test_index}]
- fi
- done
-
# gstreamer_multilib_src_test doesn't pass arguments
- GST_GL_WINDOW=x11 virtx meson_src_test --timeout-multiplier 5 ${tests[@]}
+ GST_GL_WINDOW=x11 virtx meson_src_test --timeout-multiplier 5
}
--
2.56.0
[gentoo-dev] [PATCH 04/10] media-libs/gstreamer-editing-services: use eclass to skip tests
Author: Alfred Wingate
Date: Thu, 05 Nov 2026 04:00
Date: Thu, 05 Nov 2026 04:00
78 lines
4141 bytes
4141 bytes
From: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Alfred Wingate <parona@protonmail.com>
---
.../gstreamer-editing-services-1.26.11.ebuild | 28 ++-----------------
1 file changed, 3 insertions(+), 25 deletions(-)
diff --git a/media-libs/gstreamer-editing-services/gstreamer-editing-services-1.26.11.ebuild b/media-libs/gstreamer-editing-services/gstreamer-editing-services-1.26.11.ebuild
index 8ce51ea41e50c..85dafb754f5d1 100644
--- a/media-libs/gstreamer-editing-services/gstreamer-editing-services-1.26.11.ebuild
+++ b/media-libs/gstreamer-editing-services/gstreamer-editing-services-1.26.11.ebuild
@@ -2,6 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+
PYTHON_COMPAT=( python3_{12..14} )
inherit meson python-r1 verify-sig
@@ -63,42 +64,19 @@ src_configure() {
}
src_test() {
- # Homebrew test skips for meson
- local -a tests
- tests=( $(meson test --list -C "${BUILD_DIR}") )
-
- local -a _skip_tests=(
+ local -a EMESON_SKIP_TESTS=(
# tests/check/ges/uriclip.c:71:F:filesource:test_filesource_basic:0: 'g_list_length (trackelements)' (0) is not equal to '1' (1)
# tests/check/ges/uriclip.c:244:F:filesource:test_filesource_images:0: Assertion 'ges_uri_clip_asset_is_image (GES_URI_CLIP_ASSET (asset))' failed
ges_uriclip
# tests/check/nle/common.c:50:F:tempochange:test_tempochange_play:0: Failed to make element pitch
# tests/check/nle/common.c:50:F:tempochange:test_tempochange_seek:0: Failed to make element pitch
-
nle_tempochange
# tests/check/ges/clip.c:2515:F:clip:test_children_max_duration:0: Assertion 'ges_layer_add_clip (layer, GES_CLIP (clip))' failed
# tests/check/ges/clip.c:3802:F:clip:test_rate_effects_duration_limit:0: Assertion 'ges_base_effect_is_time_effect (GES_BASE_EFFECT (pitch))' failed
-
ges_clip
)
- # Add suites which in this case are the project name
- if has_version ">=dev-build/meson-1.9.2"; then
- local -a skip_tests=()
- for skip_test in ${_skip_tests[@]}; do
- skip_tests+=( "gst-editing-services:${skip_test}" )
- done
- else
- local -a skip_tests=( ${_skip_tests[@]} )
- fi
- unset _skip_tests
-
- 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
}
src_install() {
--
2.56.0
[gentoo-dev] Re: [PATCH 09/10] dev-libs/weston: use eclass to skip tests
Author: James Le Cuirot
Date: Fri, 06 Nov 2026 22:00
Date: Fri, 06 Nov 2026 22:00
125 lines
9745 bytes
9745 bytes
--=-aTuEenMFWSOl8ECrynuY
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Thu, 2026-11-05 at 03:49 +0000, Alfred Wingate wrote:
> From: Alfred Wingate <parona@protonmail.com>
>=20
> 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(-)
>=20
> diff --git a/dev-libs/weston/weston-14.0.2-r1.ebuild b/dev-libs/weston/we=
ston-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
> =20
> EAPI=3D8
> @@ -145,9 +145,12 @@ src_test() {
> xdg_environment_reset
> addwrite /dev/dri/
> =20
> - # 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=3D(
> + # xwayland test can fail if X11 socket already exists.
> + weston:xwayland
> + )
> +
> + meson_src_test
> }
> =20
> src_install() {
> diff --git a/dev-libs/weston/weston-15.0.1.ebuild b/dev-libs/weston/westo=
n-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/
> =20
> - # 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=3D(
> + # xwayland test can fail if X11 socket already exists.
> + weston:xwayland
> + )
> +
> + meson_src_test
> }
> =20
> src_install() {
> diff --git a/dev-libs/weston/weston-16.0.2.ebuild b/dev-libs/weston/westo=
n-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/
> =20
> - # 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=3D(
> + # xwayland test can fail if X11 socket already exists.
> + weston:xwayland
> + )
> +
> + meson_src_test
> }
> =20
> 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/
> =20
> - # 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=3D(
> + # xwayland test can fail if X11 socket already exists.
> + weston:xwayland
> + )
> +
> + meson_src_test
> }
> =20
> src_install() {
LGTM for Weston, thank you.
--=-aTuEenMFWSOl8ECrynuY
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
iQEDBAAWCgCrFiEE6qETVs4yu3Lfuc3XsNCJZ6jP87QFAmruTEobFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFQUExMTM1NkNFMzJCQjcyREZCOUNE
RDdCMEQwODk2N0E4Q0ZGM0I0ERxjaGV3aUBnZW50b28ub3JnAAoJELDQiWeoz/O0
NZUA/1bMAyYanSEdEi9hC0JT5e1q6xeZbn1J/V1rEPcfWG0NAQC/SWYqYlB++8yl
Qn/kjnHvVsdV5wcNRPDSlqx5nKMPBA==
=XcZ+
-----END PGP SIGNATURE-----
--=-aTuEenMFWSOl8ECrynuY--
Re: [gentoo-dev] [PATCH 00/10] Support skippings tests in meson.eclass
Author: Sam James
Date: Sat, 07 Nov 2026 04:10
Date: Sat, 07 Nov 2026 04:10
82 lines
5145 bytes
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----- --=-=-=--
Re: [gentoo-dev] [PATCH 00/10] Support skippings tests in meson.eclass
Author: Sam James
Date: Wed, 11 Nov 2026 23:10
Date: Wed, 11 Nov 2026 23:10
77 lines
4973 bytes
4973 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 Merged last night, thanks! > > [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(-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEBBAEWCgCpFiEEJaa7iN2bdkxrVUHCc4QJ9SDfkZAFAmr09DIbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyNUE2QkI4OEREOUI3NjRDNkI1NTQx QzI3Mzg0MDlGNTIwREY5MTkwDxxzYW1AZ2VudG9vLm9yZwAKCRBzhAn1IN+RkNFH AQCwOs6lXvMd6VSII3LPXVURe0OnmzMt/HC8J9eVR5YdXAD+JZQkNWdTKcb+qPCf Fxw9KquYKkmN/dW3cNYcn/SvBgw= =cQ8D -----END PGP SIGNATURE----- --=-=-=--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads