mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-16 20:10:39 +02:00
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
This commit is contained in:
parent
27a387a152
commit
9d637f7fdb
1 changed files with 20 additions and 6 deletions
|
@ -7374,12 +7374,26 @@ formatting information, rather than the current locale name.")
|
||||||
(list "assets" "sigv4"))))))
|
(list "assets" "sigv4"))))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:import-path "github.com/prometheus/common"
|
(list
|
||||||
#:tests? #f
|
#:import-path "github.com/prometheus/common"
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
;; Source-only package
|
;; XXX: Workaround for go-build-system's lack of Go modules support.
|
||||||
(delete 'build))))
|
(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
|
(native-inputs
|
||||||
(list go-github-com-stretchr-testify))
|
(list go-github-com-stretchr-testify))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue