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:
parent
ee4982bde6
commit
92e1d3229f
1 changed files with 9 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue