[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/10: gnu: aws-lc: Fix tests.
From: |
guix-commits |
Subject: |
09/10: gnu: aws-lc: Fix tests. |
Date: |
Sun, 25 Jun 2023 17:47:03 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 7e60061da3bda6d7ee328f2a22230189c749178a
Author: Greg Hogan <code@greghogan.com>
AuthorDate: Wed Jun 21 13:37:27 2023 +0000
gnu: aws-lc: Fix tests.
* gnu/packages/tls.scm (aws-lc)[native-inputs]: Add libfaketime.
[arguments]<#:phases>: Replace and wrap 'check with faketime due to
certificate expiration.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/tls.scm | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 140932a809..d94b7c27f5 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -1219,7 +1219,20 @@ ciphers such as ChaCha20, Curve25519, NTRU, and
Blake2b.")
(arguments
'(#:test-target "run_minimal_tests"
#:configure-flags
- '("-DBUILD_SHARED_LIBS=ON")))
+ '("-DBUILD_SHARED_LIBS=ON")
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? test-target parallel-tests?
#:allow-other-keys)
+ (when tests?
+ ;; SSLTest.HostMatching fails due to an expired certificate.
+ ;; Fake the time to be that of the release.
+ (invoke "faketime" "2022-05-23"
+ "make" test-target
+ "-j" (if parallel-tests?
+ (number->string (parallel-job-count))
+ "1"))))))))
+ (native-inputs (list libfaketime))
(synopsis "General purpose cryptographic library")
(description "AWS libcrypto (aws-lc) contains portable C implementations
of algorithms needed for TLS and common applications, and includes optimized
- branch master updated (41e8726c89 -> 269cfe341f), guix-commits, 2023/06/25
- 05/10: gnu: python-mypy-extensions: Update to 1.0.0, guix-commits, 2023/06/25
- 08/10: gnu: python-trimesh: Update to 3.22.1., guix-commits, 2023/06/25
- 10/10: gnu: aws-sdk-cpp: Update to 1.9.306., guix-commits, 2023/06/25
- 03/10: services: Validate 'provision' field of <shepherd-service>., guix-commits, 2023/06/25
- 01/10: gnu: mmg: Update to 5.7.1., guix-commits, 2023/06/25
- 09/10: gnu: aws-lc: Fix tests.,
guix-commits <=
- 02/10: gnu: nomad-optimizer: Fix build., guix-commits, 2023/06/25
- 04/10: gnu: oneapi-dnnl: Fix building on riscv64-linux., guix-commits, 2023/06/25
- 07/10: gnu: fswatch: Update to 1.17.1., guix-commits, 2023/06/25
- 06/10: gnu: python-mypy-extensions: Fix style, guix-commits, 2023/06/25