diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-08-12 13:41:24 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-08-12 13:41:35 +0100 |
commit | e928854a0f76cef3b11a06160a16130c59954b76 (patch) | |
tree | e58943ebd7a6a296a6f2272e64cf17498f3b16c1 /gnu/packages/golang-web.scm | |
parent | de2845d0c48133056c7901a1bd0e6af86842cf54 (diff) | |
download | guix-e928854a0f76cef3b11a06160a16130c59954b76.tar.gz guix-e928854a0f76cef3b11a06160a16130c59954b76.zip |
gnu: go-golang-zx2c4-com-wireguard: Enable tests.
* gnu/packages/golang-web.scm (go-golang-zx2c4-com-wireguard): Enable tests.
[arguments]: <#:phases>: Use custom 'check phase.
[propagated-inputs]: Remove go-golang-org-x-text.
Change-Id: Ie6c42e5a6dc18931b4d23668fbcf5d114edbfd1f
Diffstat (limited to 'gnu/packages/golang-web.scm')
-rw-r--r-- | gnu/packages/golang-web.scm | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 21ba0c3f85..90db38d31b 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3667,15 +3667,29 @@ programming language, which supports draft-04, draft-06 and draft-07.") (build-system go-build-system) (arguments (list - ;; XXX: Failed on newer version of Golang, the recent release requires - ;; gvisor.dev/gvisor, which is huge to pack. - #:tests? #f - #:import-path "golang.zx2c4.com/wireguard")) + #:import-path "golang.zx2c4.com/wireguard" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Workaround for go-build-system's lack of Go modules + ;; support. + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" + ;; "./tune/..." ; Requires gvisor.dev/gvisor, not packed yet + "./" + "./conn/..." + "./device/..." + "./ipc/..." + "./ratelimiter/..." + "./replay/..." + "./rwcancel/..." + "./tai64n/...")))))))) (propagated-inputs (list go-golang-org-x-crypto go-golang-org-x-net - go-golang-org-x-sys - go-golang-org-x-text)) + go-golang-org-x-sys)) (home-page "https://git.zx2c4.com/wireguard") (synopsis "Implementation of WireGuard in Go") (description "This package is a Go Implementation of WireGuard.") |