diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/grep/grep-3.12.ebuild b/sdk_container/src/third_party/portage-stable/sys-apps/grep/grep-3.12.ebuild
index 31885bee97..fd8ed5ee13 100644
--- a/sdk_container/src/third_party/portage-stable/sys-apps/grep/grep-3.12.ebuild
+++ b/sdk_container/src/third_party/portage-stable/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/sdk_container/src/third_party/portage-stable/sys-apps/grep/metadata.xml b/sdk_container/src/third_party/portage-stable/sys-apps/grep/metadata.xml
index 392e432c4d..a727cc78f7 100644
--- a/sdk_container/src/third_party/portage-stable/sys-apps/grep/metadata.xml
+++ b/sdk_container/src/third_party/portage-stable/sys-apps/grep/metadata.xml
@@ -16,6 +16,7 @@
No deprecation warnings are emitted when this
flag is enabled.
+ Run expensive tests (mostly CPU intensive).
cpe:/a:gnu:grep