1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-15 19:40:46 +02:00

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
This commit is contained in:
Sharlatan Hellseher 2024-11-24 11:14:38 +00:00
parent ee4982bde6
commit 92e1d3229f
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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))