From 0a4e3c8041cf6f01f1c58eefc5c571b0025ddbe9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher <sharlatanus@gmail.com> Date: Sun, 22 Sep 2024 12:57:48 +0100 Subject: 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 --- gnu/packages/golang-crypto.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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)) -- cgit v1.2.3