guix-commits
[Top][All Lists]
Advanced

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

14/14: gnu: go-github-com-valyala-fasthttp: Skip tests with gccgo.


From: guix-commits
Subject: 14/14: gnu: go-github-com-valyala-fasthttp: Skip tests with gccgo.
Date: Thu, 25 Aug 2022 06:07:45 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 932edeb3a0f91571551c16e6fb7b75dd092d3902
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Aug 24 23:16:56 2022 +0300

    gnu: go-github-com-valyala-fasthttp: Skip tests with gccgo.
    
    * gnu/packages/golang.scm (go-github-com-valyala-fasthttp)[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 416208707e..383d4d1618 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9150,7 +9150,16 @@ anti-fragmentation protection.")
         (base32 "12qwx0yk7wjj25v4fswgmj28r69gk94kqdmzavca8k9f0yznniz1"))))
     (build-system go-build-system)
     (arguments
-     '(#:import-path "github.com/valyala/fasthttp"))
+     (list
+       #:import-path "github.com/valyala/fasthttp"
+       #:phases
+       #~(modify-phases %standard-phases
+           (replace 'check
+             (lambda* (#:key inputs #:allow-other-keys #:rest args)
+               (unless
+                 ;; Tests hang forever with gccgo.
+                 (false-if-exception (search-input-file inputs "/bin/gccgo"))
+                 (apply (assoc-ref %standard-phases 'check) args)))))))
     (propagated-inputs
      (list go-golang-org-x-sys
            go-golang-org-x-net



reply via email to

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