[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
188/401: gnu: go-go-mongodb-org-mongo-driver: Simplify package.
From: |
guix-commits |
Subject: |
188/401: gnu: go-go-mongodb-org-mongo-driver: Simplify package. |
Date: |
Thu, 26 Dec 2024 19:30:55 -0500 (EST) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit 6aa6e1b9723d7c0a77c39b08ff1fd36ad5d267c9
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Dec 15 18:48:36 2024 +0000
gnu: go-go-mongodb-org-mongo-driver: Simplify package.
* gnu/packages/golang-xyz.scm (go-go-mongodb-org-mongo-driver)
[arguments]<test-flags>: Move skip logic here.
<test-subdirs>: Move select subdir for tests here.
<phases>: Remove 'disable-failing-tests. Use default 'check.
Change-Id: I31f62fa92bf04090264541a4ed98f502e4a8a7da
---
gnu/packages/golang-xyz.scm | 52 +++++++++++++++++----------------------------
1 file changed, 20 insertions(+), 32 deletions(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index d692733c43..5326de2037 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -10575,46 +10575,34 @@ also provides V-style logging controlled by the
@code{-v} and
(arguments
(list
#:import-path "go.mongodb.org/mongo-driver"
+ #:test-flags
+ #~(list "-skip"
+ (string-join
+ ;; Some tests require running database and available network
+ ;; connection.
+ (list "TestAggregate"
+ "TestPollSRVRecords"
+ "TestPollSRVRecordsServiceName"
+ "TestPollingSRVRecordsLoadBalanced"
+ "TestPollingSRVRecordsSpec"
+ "TestServerHeartbeatOffTimeout"
+ "TestServerHeartbeatTimeout"
+ "TestTimeCodec"
+ "TestTopologyConstructionLogging"
+ "TestURIOptionsSpec")
+ "|"))
+ #:test-subdirs
+ #~(list "bson/..." "event/..." "internal/..." "tag/..." "x/...")
#:phases
#~(modify-phases %standard-phases
+ (delete 'build) ; no go files in project's root
(add-after 'unpack 'remove-examples-and-benchmarks
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(for-each delete-file-recursively
(list "benchmark"
"examples"
- "cmd/godriver-benchmark")))))
- (add-before 'check 'disable-failing-tests
- (lambda* (#:key tests? unpack-path #:allow-other-keys)
- (with-directory-excursion (string-append "src/" unpack-path)
- (substitute* (find-files "." "\\_test.go$")
- ;; Some tests require running database and available network
connection.
- (("TestAggregate") "OffTestAggregate")
- (("TestPollSRVRecords") "OffTestPollSRVRecords")
- (("TestPollSRVRecordsServiceName")
- "OffTestPollSRVRecordsServiceName")
- (("TestPollingSRVRecordsLoadBalanced")
- "OffTestPollingSRVRecordsLoadBalanced")
- (("TestPollingSRVRecordsSpec")
- "OffTestPollingSRVRecordsSpec")
- (("TestServerHeartbeatOffTimeout")
- "OffTestServerHeartbeatTimeout")
- (("TestServerHeartbeatTimeout")
- "OffTestServerHeartbeatTimeout")
- (("TestTimeCodec") "OffTestTimeCodec")
- (("TestTopologyConstructionLogging")
- "OffTestTopologyConstructionLogging")
- (("TestURIOptionsSpec") "OffTestURIOptionsSpec")))))
- ;; 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)
- (for-each
- (lambda (package)
- (invoke "go" "test" (string-append "./" package "/...")))
- (list "bson" "event" "internal" "tag" "x")))))))))
+ "cmd/godriver-benchmark"))))))))
(native-inputs
(list go-github-com-aws-aws-lambda-go))
(propagated-inputs
- 117/401: gnu: Add go-pgmockproxy., (continued)
- 117/401: gnu: Add go-pgmockproxy., guix-commits, 2024/12/26
- 138/401: gnu: Add go-github-com-jackc-fake., guix-commits, 2024/12/26
- 132/401: gnu: go-go-uber-org-zap: Update to 1.27.0., guix-commits, 2024/12/26
- 159/401: gnu: Add go-github-com-ipfs-go-ds-flatfs., guix-commits, 2024/12/26
- 157/401: gnu: go-github-com-hashicorp-hcl: Fix build., guix-commits, 2024/12/26
- 174/401: gnu: Add go-gitlab-com-yawning-utls-git., guix-commits, 2024/12/26
- 171/401: gnu: Add go-gitlab-com-yawning-bsaes-git., guix-commits, 2024/12/26
- 203/401: gnu: Add go-github-com-getkin-kin-openapi., guix-commits, 2024/12/26
- 199/401: gnu: go-github-com-mailru-easyjson: Update to 0.9.0., guix-commits, 2024/12/26
- 185/401: gnu: go-github-com-twpayne-go-xdg-v3: Fix bulid., guix-commits, 2024/12/26
- 188/401: gnu: go-go-mongodb-org-mongo-driver: Simplify package.,
guix-commits <=
- 225/401: gnu: go-github-com-jcmturner-rpc: Fix import path., guix-commits, 2024/12/26
- 232/401: gnu: go-github-com-jacobsa-reqtrace: Update to 0.0.0-20150505043853-245c9e0234cb., guix-commits, 2024/12/26
- 233/401: gnu: go-github-com-jacobsa-reqtrace: Move to golang-check., guix-commits, 2024/12/26
- 246/401: gnu: Add go-github-com-jacobsa-syncutil., guix-commits, 2024/12/26
- 247/401: gnu: go-golang-org-x-net: Update to 0.33.0., guix-commits, 2024/12/26
- 243/401: gnu: Add go-github-com-maxatome-go-testdeep., guix-commits, 2024/12/26
- 01/401: gnu: Remove go-github-com-calmh-xdr., guix-commits, 2024/12/26
- 02/401: gnu: Remove go-github-com-dustin-gojson., guix-commits, 2024/12/26
- 03/401: gnu: go-github-com-russross-blackfriday: Move to golang-xyz., guix-commits, 2024/12/26
- 14/401: gnu: go-github-com-spf13-cast: Move to golang-xyz., guix-commits, 2024/12/26