guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: guix-commits
Subject: 48/52: gnu: libproxy: Don't run tests when cross-compiling.
Date: Mon, 20 Sep 2021 07:19:41 -0400 (EDT)

mothacehe pushed a commit to branch core-updates-frozen
in repository guix.

commit bce0a7d3d87222286176f1bdb49b3028cbc5e46b
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Wed Aug 25 15:40:50 2021 +0200

    gnu: libproxy: Don't run tests when cross-compiling.
    
    * gnu/packages/networking.scm
      (libproxy)[arguments]]<#:phases>{check}: Respect #:tests? when
      cross-compiling.
---
 gnu/packages/networking.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 532f277..c426c95 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]