[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
44/74: gnu: go-github-com-prometheus-common: Enable tests.
From: |
guix-commits |
Subject: |
44/74: gnu: go-github-com-prometheus-common: Enable tests. |
Date: |
Thu, 25 Jul 2024 18:02:27 -0400 (EDT) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit 9d637f7fdbfa5910fd176cac01a4491fd833f480
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Wed Jul 24 21:29:01 2024 +0100
gnu: go-github-com-prometheus-common: Enable tests.
* gnu/packages/golang.scm (go-github-com-prometheus-common): Enable the
most of the tests.
[arguments]: <#:phases>: Use custom 'check phase.
Change-Id: I4190be63393cbba4d2e132bab21d40625a022141
---
gnu/packages/golang.scm | 26 ++++++++++++++++++++------
1 file changed, 20 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index d60ae45722..57b15435df 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7374,12 +7374,26 @@ formatting information, rather than the current locale
name.")
(list "assets" "sigv4"))))))
(build-system go-build-system)
(arguments
- '(#:import-path "github.com/prometheus/common"
- #:tests? #f
- #:phases
- (modify-phases %standard-phases
- ;; Source-only package
- (delete 'build))))
+ (list
+ #:import-path "github.com/prometheus/common"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: 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"
+ ;; "./config/..." requries
+ ;; <github.com/prometheus/client_golang/prometheus>,
+ ;; which introduce cycle.
+ "./expfmt/..."
+ "./helpers/..."
+ "./model/..."
+ "./promlog/..."
+ "./route/..."
+ "./server/..."))))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
- 07/74: gnu: go-github-com-google-go-cmp-cmp: Enable all tests., (continued)
- 07/74: gnu: go-github-com-google-go-cmp-cmp: Enable all tests., guix-commits, 2024/07/25
- 30/74: gnu: Add go-tomlv., guix-commits, 2024/07/25
- 36/74: gnu: go-github-com-jpillora-backoff: Move to golang-xyz., guix-commits, 2024/07/25
- 42/74: gnu: go-github-com-prometheus-common: Remove submodules., guix-commits, 2024/07/25
- 43/74: gnu: go-github-com-prometheus-common: Update to 0.55.0., guix-commits, 2024/07/25
- 51/74: gnu: Add go-github-com-cespare-xxhash., guix-commits, 2024/07/25
- 54/74: gnu: go-github-com-prometheus-client-golang: Update to 1.19.1., guix-commits, 2024/07/25
- 63/74: gnu: go-netns: Fix indentation., guix-commits, 2024/07/25
- 37/74: gnu: go-github-com-jpillora-backoff: Update to 1.0.0-1.fab01a9., guix-commits, 2024/07/25
- 41/74: gnu: Add go-github-com-go-kit-log., guix-commits, 2024/07/25
- 44/74: gnu: go-github-com-prometheus-common: Enable tests.,
guix-commits <=
- 49/74: gnu: go-github-com-oneofone-xxhash: Move to golang-crypto., guix-commits, 2024/07/25
- 57/74: gnu: go-github-com-nbrownus-go-metrics-prometheus: Move to prometheus., guix-commits, 2024/07/25
- 70/74: gnu: go-github-com-bits-and-blooms-bloom: Update to 3.7.0., guix-commits, 2024/07/25
- 62/74: gnu: go-netns: Update to 0.0.4., guix-commits, 2024/07/25
- 39/74: gnu: Add go-github-com-mwitkow-go-conntrack., guix-commits, 2024/07/25
- 50/74: gnu: go-github-com-cespare-xxhash: Rename variable., guix-commits, 2024/07/25
- 66/74: gnu: go-netlink: Update to 1.1.0., guix-commits, 2024/07/25
- 74/74: gnu: yggdrasil: Enable tests., guix-commits, 2024/07/25
- 73/74: gnu: yggdrasil: Adjust inputs., guix-commits, 2024/07/25
- 04/74: gnu: go-github-com-coreos-go-oidc-v3: Update to 3.11.0., guix-commits, 2024/07/25