mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
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>
This commit is contained in:
parent
5cf9880dd4
commit
7e60061da3
1 changed files with 14 additions and 1 deletions
|
@ -1219,7 +1219,20 @@ (define-public aws-lc
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue