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:
Sharlatan Hellseher 2024-07-28 22:44:14 +01:00
parent 35438093a4
commit 1434e3aeea
No known key found for this signature in database
GPG Key ID: 76D727BFF62CD2B5

View File

@ -914,11 +914,16 @@ for Go.")
(arguments
(list
#:import-path "github.com/emersion/go-msgauth"
#:tests? #f ; Source-only package.
#:phases
#~(modify-phases %standard-phases
;; Source-only package.
(delete 'build))))
;; XXX: Run all tests, workaround for go-build-system's lack of Go
;; 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
(list go-golang-org-x-crypto
go-github-com-emersion-go-milter