gnu: openssl: Skip time-dependent test.

Fixes <https://issues.guix.gnu.org/56137>.
Reported by phodina <phodina@protonmail.com>.

* gnu/packages/tls.scm (openssl)[arguments]: Replace the 'check'
phase; this applies to both 1.1.1n and 3.0.3.
This commit is contained in:
Ludovic Courtès 2022-06-21 15:16:43 +02:00
parent 02deb21137
commit 6cd438c4c2
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -422,15 +422,20 @@ OpenSSL for TARGET."
#$(target->openssl-target #$(target->openssl-target
(%current-target-system)))))) (%current-target-system))))))
#~()) #~())
;; This test seems to be dependant on kernel features. (replace 'check
;; https://github.com/openssl/openssl/issues/12242 (lambda* (#:key tests? test-target #:allow-other-keys)
#$@(if (or (target-arm?) (when tests?
(target-riscv64?)) ;; 'test_ssl_new.t' in 1.1.1n and 3.0.3 fails due to an expired
#~((replace 'check ;; certificate:
(lambda* (#:key tests? test-target #:allow-other-keys) ;; <https://github.com/openssl/openssl/issues/18441>.
(when tests? ;; Skip it.
(invoke "make" "TESTS=-test_afalg" test-target))))) ;;
#~()) ;; 'test_afalg' seems to be dependent on kernel features:
;; <https://github.com/openssl/openssl/issues/12242>.
(invoke "make" test-target
#$(if (or (target-arm?) (target-riscv64?))
"TESTS=-test_afalg -tls_ssl_new"
"TESTS=-test_ssl_new")))))
(replace 'configure (replace 'configure
(lambda* (#:key configure-flags #:allow-other-keys) (lambda* (#:key configure-flags #:allow-other-keys)
(let* ((out #$output) (let* ((out #$output)