3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: libproxy: Don't run tests when cross-compiling.

* gnu/packages/networking.scm
  (libproxy)[arguments]]<#:phases>{check}: Respect #:tests? when
  cross-compiling.
This commit is contained in:
Maxime Devos 2021-08-25 15:40:50 +02:00 committed by Mathieu Othacehe
parent be58507d5d
commit bce0a7d3d8
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -47,6 +47,7 @@
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
;;; Copyright © 2021 Milkey Mouse <milkeymouse@meme.institute>
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;;
;;; This file is part of GNU Guix.
;;;
@ -2253,8 +2254,13 @@ sockets in Perl.")
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "ctest" "-E" "url-test"))))))
;; TODO(core-updates): Make this unconditional.
,(if (%current-target-system)
'(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "ctest" "-E" "url-test")))
'(lambda _
(invoke "ctest" "-E" "url-test")))))))
(synopsis "Library providing automatic proxy configuration management")
(description "Libproxy handles the details of HTTP/HTTPS proxy
configuration for applications across all scenarios. Applications using