[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/16: gnu: go-github-com-chmduquesne-rollinghash: Enable all tests.
From: |
guix-commits |
Subject: |
11/16: gnu: go-github-com-chmduquesne-rollinghash: Enable all tests. |
Date: |
Thu, 27 Jun 2024 11:05:32 -0400 (EDT) |
sharlatan pushed a commit to branch master
in repository guix.
commit c160d88c6cf65853a6c45a766fec188ccb31ffe2
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Jun 27 15:18:58 2024 +0100
gnu: go-github-com-chmduquesne-rollinghash: Enable all tests.
* gnu/packages/golang-crypto.scm (go-github-com-chmduquesne-rollinghash):
Enable all tests.
[arguments]: <#:phases>: Add custom 'check phase.
[propagated-inputs]: Add go-code-cloudfoundry-org-bytefmt.
Change-Id: I2cfe6b3d490de4b85ed0814e074caac1f73d6936
---
gnu/packages/golang-crypto.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index a0b8f24443..ddeb79badf 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -339,7 +339,18 @@ xxHash algorithm (XXH64).")
(build-system go-build-system)
(arguments
(list
- #:import-path "github.com/chmduquesne/rollinghash/"))
+ #:import-path "github.com/chmduquesne/rollinghash/"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: Run all tests, 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-code-cloudfoundry-org-bytefmt))
(home-page "https://github.com/chmduquesne/rollinghash")
(synopsis "Rolling hashes in Go")
(description
- 04/16: gnu: go-github-com-oschwald-geoip2-golang: Move to golang-web., (continued)
- 04/16: gnu: go-github-com-oschwald-geoip2-golang: Move to golang-web., guix-commits, 2024/06/27
- 08/16: gnu: Add go-github-com-thejerf-suture-v4., guix-commits, 2024/06/27
- 13/16: gnu: Remove go-github-com-calmh-du., guix-commits, 2024/06/27
- 14/16: gnu: go-github-com-calmh-xdr: Move to golang-xyz., guix-commits, 2024/06/27
- 01/16: gnu: go-github-com-oschwald-maxminddb-golang: Move to golang-web., guix-commits, 2024/06/27
- 07/16: gnu: go-github-com-thejerf-suture: Update to 3.0.3., guix-commits, 2024/06/27
- 05/16: gnu: go-github-com-oschwald-geoip2-golang: Update to 1.11.0., guix-commits, 2024/06/27
- 09/16: gnu: go-github-com-chmduquesne-rollinghash: Move to golang-crypto., guix-commits, 2024/06/27
- 06/16: gnu: go-github-com-thejerf-suture: Move to golang-xyz., guix-commits, 2024/06/27
- 10/16: gnu: go-github-com-chmduquesne-rollinghash: Update to 4.0.0-1.9a5199b., guix-commits, 2024/06/27
- 11/16: gnu: go-github-com-chmduquesne-rollinghash: Enable all tests.,
guix-commits <=
- 15/16: gnu: go-github-com-flynn-archive-go-shlex: Move to golang-xyz., guix-commits, 2024/06/27
- 16/16: gnu: go-github-com-vitrun-qart: Move to golang-xyz., guix-commits, 2024/06/27
- 12/16: gnu: go-github-com-d4l3k-messagediff: Move to golang-xyz., guix-commits, 2024/06/27