guix-commits
[Top][All Lists]
Advanced

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

13/32: gnu: go-github-com-spf13-afero: Run all tests.


From: guix-commits
Subject: 13/32: gnu: go-github-com-spf13-afero: Run all tests.
Date: Sun, 24 Nov 2024 07:50:51 -0500 (EST)

sharlatan pushed a commit to branch go-team
in repository guix.

commit ff14292ff722e1839da198f5295b1d81cf9e206f
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Nov 24 11:14:38 2024 +0000

    gnu: go-github-com-spf13-afero: Run all tests.
    
    * gnu/packages/golang-xyz.scm (go-github-com-spf13-afero): Enable all
    tests from subdirectories.
    [arguments]<phases>: Use custom 'check.
    
    Change-Id: Iada2f737c19c6fe18038da56c316717e6e0ce3ac
---
 gnu/packages/golang-xyz.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 2299891736..fc17222cbe 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6880,7 +6880,15 @@ Use waterutil with it to work with TUN/TAP 
packets/frames.")
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/spf13/afero"))
+      #:import-path "github.com/spf13/afero"
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; XXX: Replace when go-build-system supports nested path.
+          (replace 'check
+            (lambda* (#:key import-path tests? #:allow-other-keys)
+              (when tests?
+                (with-directory-excursion (string-append "src/" import-path)
+                  (invoke "go" "test" "-v" "./..."))))))))
     (propagated-inputs
      (list go-github-com-pkg-sftp
            go-golang-org-x-text))



reply via email to

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