summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-11-24 11:14:38 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-01-21 23:41:43 +0000
commit92e1d3229f7768935e83c9eaefcc69e75097ea98 (patch)
treeb497945e5005aa0aeea1c48cf4dc13b1aa26bfc5
parentee4982bde6f1dadec251ab7cebc998a8b7fa7158 (diff)
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
-rw-r--r--gnu/packages/golang-xyz.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 12e495b5e0..b8e623eafc 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -7223,7 +7223,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))