diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-09-22 12:57:48 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-11-09 21:33:52 +0000 |
commit | 0a4e3c8041cf6f01f1c58eefc5c571b0025ddbe9 (patch) | |
tree | 40eba459a7d90506aa39c14a564384c5b7cec339 | |
parent | 8f14e8c9c3d60fcf9c52875125a417022c42f301 (diff) | |
download | guix-0a4e3c8041cf6f01f1c58eefc5c571b0025ddbe9.tar.gz guix-0a4e3c8041cf6f01f1c58eefc5c571b0025ddbe9.zip |
gnu: go-github-com-shadowsocks-go-shadowsocks2: Enable all tests.
* gnu/packages/golang-crypto.scm (go-github-com-shadowsocks-go-shadowsocks2)
[arguments]: <#:phases>: Use custom 'check phase.
Change-Id: Ia7efa74417d47a4679befd11ca3e76aaf0bc8c48
-rw-r--r-- | gnu/packages/golang-crypto.scm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 27ce64ca9a..1236ff38e3 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -1588,7 +1588,17 @@ wide-block encryption mode developed by Halevi and Rogaway.") (base32 "0n24h5ffgc3735y0mmp6dbhxdfm9fk13i26fqxxw7i75qnmvjvyg")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/shadowsocks/go-shadowsocks2")) + (list + #:import-path "github.com/shadowsocks/go-shadowsocks2" + #: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" "./...")))))))) (propagated-inputs (list go-github-com-riobard-go-bloom go-golang-org-x-crypto)) |