mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-github-com-emersion-go-msgauth: Enable tests.
* gnu/packages/golang-web.scm (go-github-com-emersion-go-msgauth): Enable tests. [arguments]: <#:phases>: Add custom 'check phase. Change-Id: I126a688146bc4e47980f4046fd3118008520fe70
This commit is contained in:
parent
35438093a4
commit
1434e3aeea
1 changed files with 8 additions and 3 deletions
|
@ -914,11 +914,16 @@ for Go.")
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:import-path "github.com/emersion/go-msgauth"
|
#:import-path "github.com/emersion/go-msgauth"
|
||||||
#:tests? #f ; Source-only package.
|
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
;; Source-only package.
|
;; XXX: Run all tests, workaround for go-build-system's lack of Go
|
||||||
(delete 'build))))
|
;; modules support.
|
||||||
|
(delete 'build)
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(invoke "go" "test" "-v" "./..."))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-golang-org-x-crypto
|
(list go-golang-org-x-crypto
|
||||||
go-github-com-emersion-go-milter
|
go-github-com-emersion-go-milter
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue