guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: go-gotest-tools-internal-source: Skip tests with gccgo.


From: guix-commits
Subject: 02/02: gnu: go-gotest-tools-internal-source: Skip tests with gccgo.
Date: Wed, 29 Nov 2023 15:35:01 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit bdbb9dc27a590b08651d058f06a42caa26e04abb
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Nov 29 22:02:21 2023 +0200

    gnu: go-gotest-tools-internal-source: Skip tests with gccgo.
    
    * gnu/packages/golang.scm (go-gotest-tools-internal-source)[arguments]:
    When building with gccgo skip the test suite.
    
    Change-Id: Ibe3569d9449321dd13ac7691273644d83f8fb38b
---
 gnu/packages/golang.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 5e9211026b..45b895ca40 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -8568,6 +8568,17 @@ with gotest-tools.")))
 
 (define-public go-gotest-tools-internal-source
   (package (inherit (go-gotest-tools-package "internal/source"))
+    (arguments
+     (substitute-keyword-arguments
+       (package-arguments (go-gotest-tools-package "internal/source"))
+       ((#:phases phases #~%standard-phases)
+        #~(modify-phases #$phases
+            (replace 'check
+              (lambda* (#:key inputs #:allow-other-keys #:rest args)
+                (unless
+                  ;; failed to parse source file: : open : no such file or 
directory
+                  (false-if-exception (search-input-file inputs "/bin/gccgo"))
+                  (apply (assoc-ref %standard-phases 'check) args))))))))
     (native-inputs
      (list go-github-com-pkg-errors go-github-com-google-go-cmp-cmp))
     (synopsis "Source code AST formatters for gotest-tools")



reply via email to

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