guix-commits
[Top][All Lists]
Advanced

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

08/14: gnu: go-gopkg-in-check-v1: Skip tests with gccgo.


From: guix-commits
Subject: 08/14: gnu: go-gopkg-in-check-v1: Skip tests with gccgo.
Date: Thu, 25 Aug 2022 06:07:44 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 22487dfc227613a5c769435e3448d6b791dc9bf3
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Aug 24 22:00:20 2022 +0300

    gnu: go-gopkg-in-check-v1: Skip tests with gccgo.
    
    * gnu/packages/golang.scm (go-gopkg-in-check-v1)[arguments]: Don't run
    the test suite when building with gccgo.
---
 gnu/packages/golang.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 98338cb701..ed31d330de 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4051,7 +4051,16 @@ which satisfies the cron expression.")
          "1jwxndf8rsyx0fgrp47d99rp55yzssmryb92jfj3yf7zd8rjjljn"))))
     (build-system go-build-system)
     (arguments
-     '(#:import-path "gopkg.in/check.v1"))
+     (list
+       #:import-path "gopkg.in/check.v1"
+       #:phases
+       #~(modify-phases %standard-phases
+           (replace 'check
+             (lambda* (#:key inputs #:allow-other-keys #:rest args)
+               (unless
+                 ;; The tests fail when run with gccgo.
+                 (false-if-exception (search-input-file inputs "/bin/gccgo"))
+                 (apply (assoc-ref %standard-phases 'check) args)))))))
     (propagated-inputs
      (list go-github-com-kr-pretty))
     (home-page "https://gopkg.in/check.v1";)



reply via email to

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