commit:     3fd26f73ff5868c5c1a1d6279491dcbe47d7f129
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 25 03:55:11 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 25 03:57:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fd26f73

dev-libs/libgcrypt: skip benchmark tests

Matt reported that 'bench-slope' took at least 6.5 hours on HPPA (on
a PA8900, which is the fastest it has!) and I've noticed this test taking
a while (though far less time) on amd64. Let's skip it by setting
GCRYPT_NO_BENCHMARKS which the testsuite already provides for us.

Reported-by: Matt Turner <mattst88 <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild    | 5 ++++-
 dev-libs/libgcrypt/libgcrypt-1.10.3-r1.ebuild | 5 ++++-
 dev-libs/libgcrypt/libgcrypt-1.10.3-r2.ebuild | 5 ++++-
 dev-libs/libgcrypt/libgcrypt-1.11.0-r1.ebuild | 3 +++
 dev-libs/libgcrypt/libgcrypt-1.11.0-r2.ebuild | 5 ++++-
 dev-libs/libgcrypt/libgcrypt-1.11.0.ebuild    | 5 ++++-
 6 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild 
b/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild
index 6c0585d89698..7954c5f2aa9a 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -167,6 +167,9 @@ multilib_src_test() {
        # t-secmem and t-sexp need mlock which requires extra privileges; nspawn
        # at least disallows that by default.
        local -x GCRYPT_IN_ASAN_TEST=1
+       # Avoid running (very) expensive bench-slope test. On hppa, it
+       # takes at least 7 hours.
+       local -x GCRYPT_NO_BENCHMARKS=1
 
        default
 }

diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.3-r1.ebuild 
b/dev-libs/libgcrypt/libgcrypt-1.10.3-r1.ebuild
index ec0db5a77c6b..c651cc767b8c 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.10.3-r1.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.10.3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -165,6 +165,9 @@ multilib_src_test() {
        # t-secmem and t-sexp need mlock which requires extra privileges; nspawn
        # at least disallows that by default.
        local -x GCRYPT_IN_ASAN_TEST=1
+       # Avoid running (very) expensive bench-slope test. On hppa, it
+       # takes at least 7 hours.
+       local -x GCRYPT_NO_BENCHMARKS=1
 
        default
 }

diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.3-r2.ebuild 
b/dev-libs/libgcrypt/libgcrypt-1.10.3-r2.ebuild
index 07596861dd7d..c546de3cf23b 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.10.3-r2.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.10.3-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -171,6 +171,9 @@ multilib_src_test() {
        # t-secmem and t-sexp need mlock which requires extra privileges; nspawn
        # at least disallows that by default.
        local -x GCRYPT_IN_ASAN_TEST=1
+       # Avoid running (very) expensive bench-slope test. On hppa, it
+       # takes at least 7 hours.
+       local -x GCRYPT_NO_BENCHMARKS=1
 
        default
 }

diff --git a/dev-libs/libgcrypt/libgcrypt-1.11.0-r1.ebuild 
b/dev-libs/libgcrypt/libgcrypt-1.11.0-r1.ebuild
index e90e50144ed6..45bc4ef0ff04 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.11.0-r1.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.11.0-r1.ebuild
@@ -165,6 +165,9 @@ multilib_src_test() {
        # t-secmem and t-sexp need mlock which requires extra privileges; nspawn
        # at least disallows that by default.
        local -x GCRYPT_IN_ASAN_TEST=1
+       # Avoid running (very) expensive bench-slope test. On hppa, it
+       # takes at least 7 hours.
+       local -x GCRYPT_NO_BENCHMARKS=1
 
        default
 }

diff --git a/dev-libs/libgcrypt/libgcrypt-1.11.0-r2.ebuild 
b/dev-libs/libgcrypt/libgcrypt-1.11.0-r2.ebuild
index 4b77f2ee8add..f1ad04917853 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.11.0-r2.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.11.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -172,6 +172,9 @@ multilib_src_test() {
        # t-secmem and t-sexp need mlock which requires extra privileges; nspawn
        # at least disallows that by default.
        local -x GCRYPT_IN_ASAN_TEST=1
+       # Avoid running (very) expensive bench-slope test. On hppa, it
+       # takes at least 7 hours.
+       local -x GCRYPT_NO_BENCHMARKS=1
 
        default
 }

diff --git a/dev-libs/libgcrypt/libgcrypt-1.11.0.ebuild 
b/dev-libs/libgcrypt/libgcrypt-1.11.0.ebuild
index 77bc6b55e34b..f996a1611e03 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.11.0.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.11.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -164,6 +164,9 @@ multilib_src_test() {
        # t-secmem and t-sexp need mlock which requires extra privileges; nspawn
        # at least disallows that by default.
        local -x GCRYPT_IN_ASAN_TEST=1
+       # Avoid running (very) expensive bench-slope test. On hppa, it
+       # takes at least 7 hours.
+       local -x GCRYPT_NO_BENCHMARKS=1
 
        default
 }

Reply via email to