commit:     649663f64ecf8c578e88125841fcd1b2ca9f6bdc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 20 23:42:22 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 20 23:42:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=649663f6

sys-apps/sed: wire up USE=test-full

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/sed/metadata.xml      | 3 +++
 sys-apps/sed/sed-4.9-r1.ebuild | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/sys-apps/sed/metadata.xml b/sys-apps/sed/metadata.xml
index e562da12ca90..b25d01b1fd82 100644
--- a/sys-apps/sed/metadata.xml
+++ b/sys-apps/sed/metadata.xml
@@ -5,6 +5,9 @@
                <email>[email protected]</email>
                <name>Gentoo Base System</name>
        </maintainer>
+       <use>
+               <flag name="test-full">Run expensive tests (mostly CPU 
intensive).</flag>
+       </use>
        <upstream>
                <remote-id type="savannah">sed</remote-id>
                <remote-id type="cpe">cpe:/a:gnu:sed</remote-id>

diff --git a/sys-apps/sed/sed-4.9-r1.ebuild b/sys-apps/sed/sed-4.9-r1.ebuild
index 5c8a45e06bc4..860cbd3be604 100644
--- a/sys-apps/sed/sed-4.9-r1.ebuild
+++ b/sys-apps/sed/sed-4.9-r1.ebuild
@@ -14,7 +14,7 @@ SRC_URI+=" verify-sig? ( mirror://gnu/sed/${P}.tar.xz.sig )"
 LICENSE="GPL-3+"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv 
~s390 ~sparc x86 ~arm64-macos"
-IUSE="acl nls selinux static"
+IUSE="acl nls selinux static test-full"
 
 RDEPEND="
        !static? (
@@ -58,6 +58,8 @@ src_configure() {
 }
 
 src_test() {
+       local -x RUN_{VERY_,}EXPENSIVE_TESTS=$(usex test-full yes no)
+
        # We don't want to automagically use Valgrind for tests.
        sed -i -e 's:valgrind --error-exitcode=1:false:' init.cfg || die
 

Reply via email to