gnu: openssl-1.1: Specify TESTS Make variable via #:make-flags.

* gnu/packages/tls.scm (openssl-1.1) [make-flags]: New field.
[phases] {check}: Remove phase override.
This commit is contained in:
Maxim Cournoyer 2023-02-26 23:36:53 -05:00
parent 732105ef7e
commit 41da613ba3
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -449,6 +449,15 @@ (define-public openssl-1.1
(arguments
(list
#:parallel-tests? #f
#:make-flags
;; 'test_ssl_new.t' in 1.1.1n and 3.0.3 fails due to an expired
;; certificate: <https://github.com/openssl/openssl/issues/18441>. Skip
;; it.
#~(list #$@(if (or (target-arm?) (target-riscv64?))
;; 'test_afalg' seems to be dependent on kernel features:
;; <https://github.com/openssl/openssl/issues/12242>.
#~("TESTS=-test_afalg -tls_ssl_new")
#~("TESTS=-test_ssl_new")))
#:test-target "test"
;; Changes to OpenSSL sometimes cause Perl to "sneak in" to the closure,
;; so we explicitly disallow it here.
@ -463,20 +472,6 @@ (define-public openssl-1.1
#$(target->openssl-target
(%current-target-system))))))
#~())
(replace 'check
(lambda* (#:key tests? test-target #:allow-other-keys)
(when tests?
;; 'test_ssl_new.t' in 1.1.1n and 3.0.3 fails due to an expired
;; certificate:
;; <https://github.com/openssl/openssl/issues/18441>.
;; Skip it.
;;
;; '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
(lambda* (#:key configure-flags #:allow-other-keys)
;; It's not a shebang so patch-source-shebangs misses it.