commit: 89f74e3f499eca1bbf1ec6960e44b70e6a637044
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 20 23:32:34 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 20 23:32:34 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89f74e3f
sys-apps/grep: wire up USE=test-full
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-apps/grep/grep-3.12.ebuild | 4 +++-
sys-apps/grep/metadata.xml | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/sys-apps/grep/grep-3.12.ebuild b/sys-apps/grep/grep-3.12.ebuild
index 31885bee97de..fd8ed5ee136c 100644
--- a/sys-apps/grep/grep-3.12.ebuild
+++ b/sys-apps/grep/grep-3.12.ebuild
@@ -25,7 +25,7 @@ fi
LICENSE="GPL-3+"
SLOT="0"
-IUSE="+egrep-fgrep nls pcre static"
+IUSE="+egrep-fgrep nls pcre static test-full"
# We lack dev-libs/libsigsegv[static-libs] for now
REQUIRED_USE="static? ( !sparc )"
@@ -74,6 +74,8 @@ src_prepare() {
src_configure() {
use static && append-ldflags -static
+ export RUN_{VERY_,}EXPENSIVE_TESTS=$(usex test-full yes no)
+
# We used to turn this off unconditionally (bug #673524) but we now
# allow it for cases where libsigsegv is better for userspace handling
# of stack overflows.
diff --git a/sys-apps/grep/metadata.xml b/sys-apps/grep/metadata.xml
index 392e432c4d1a..a727cc78f729 100644
--- a/sys-apps/grep/metadata.xml
+++ b/sys-apps/grep/metadata.xml
@@ -16,6 +16,7 @@
No deprecation warnings are emitted when this
flag is enabled.
</flag>
+ <flag name="test-full">Run expensive tests (mostly CPU
intensive).</flag>
</use>
<upstream>
<remote-id type="cpe">cpe:/a:gnu:grep</remote-id>