gnu: nats-server: Fix tests.

* gnu/packages/high-availability.scm (nats-server) [arguments]
<tests-flags>: Port tests options as seen in project's GitHub Actions
workflow.
<test-subdirs>: Likewise.

Change-Id: I989163842c5c2bed672ddc021f0e0c572e352831
This commit is contained in:
Sharlatan Hellseher 2024-12-26 15:11:03 +00:00
parent 347eda414d
commit 0b7578e596
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -215,6 +215,21 @@ (define-public nats-server
(sha256
(base32 "0r1d0l3mmb90956wl97vqlb3cdhax7jkqa95hvx9b380g93a08py"))))
(build-system go-build-system)
(arguments
(list
#:install-source? #f
#:import-path "github.com/nats-io/nats-server"
;; The test logic is taken from project's GitHub Actions workflow file
;; <.github/workflows/tests.yaml>.
#:test-flags
#~(list "-count=1" "-vet=off" "-failfast"
"-skip" (string-join
(list "TestHTTPHost"
"TestSysLogger"
"TestLogMaxArchives")
"|") )
#:test-subdirs
#~(list "conf/..." "internal/..." "logger/..." "test/...")))
(inputs
(list go-github-com-klauspost-compress
go-github-com-minio-highwayhash
@ -226,10 +241,6 @@ (define-public nats-server
go-golang-org-x-crypto
go-golang-org-x-sys
go-golang-org-x-time))
(arguments
(list
#:import-path "github.com/nats-io/nats-server"
#:install-source? #f))
(home-page "https://github.com/nats-io/nats-server")
(synopsis "High performance message broker")
(description