summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-07-14 14:03:37 +0100
committerAndreas Enge <andreas@enge.fr>2025-07-26 19:55:48 +0200
commit00eee4c9e243a5e37386e3d07769f4b68f51b9a2 (patch)
tree3296beceeadf2fb7a2283dbf32a53b14fca3cd25
parent26c867bd9fbf8997f658ecf457c4f84134352199 (diff)
gnu: go-github-com-ipfs-boxo: Simplify tests.
* gnu/packages/ipfs.scm (go-github-com-ipfs-boxo): [arguments] <test-subdirs>: Drop it in favor of <test-flags>. <test-flags>: Skip just 2 failing test requiring network access. [native-inputs]: Add go-github-com-libp2p-go-libp2p-kad-dht-bootstrap. [propagated-inputs]: Add go-go-opentelemetry-io-otel-exporters-otlp-otlptrace. Change-Id: Ib59e35801d31e10c7e265dc1bac7c72389233843
-rw-r--r--gnu/packages/ipfs.scm42
1 files changed, 12 insertions, 30 deletions
diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 4df363e0c1..6674801ca2 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -128,8 +128,8 @@ JSONMarshal/JSONUnmarshal to store/reload the Bloom filter.")
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/ipfs/boxo")
- (commit (string-append "v" version))))
+ (url "https://github.com/ipfs/boxo")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1siicb0bs4shc220xk2i5d4p5myrh3yg64hm3yl796gjbcqgs66d"))
@@ -149,34 +149,16 @@ JSONMarshal/JSONUnmarshal to store/reload the Bloom filter.")
(list
#:skip-build? #t
#:embed-files #~(list "sorted-network-list.bin")
- #:test-subdirs #~(list "bitswap/..."
- "blockservice/..."
- "blockstore/..."
- "bootstrap/..."
- "chunker/..."
- "datastore/..."
- "exchange/..."
- "fetcher/..."
- "files/..."
- "filestore/..."
- ;; "gateway/..." ; missing packages
- "ipld/..."
- "ipns/..."
- "keystore/..."
- "mfs/..."
- ;; "namesys/..." ; missing packages
- "path/..."
- "peering/..."
- "pinning/..."
- "provider/..."
- ;; "routing/..." ; missing packages
- "tar/..."
- ;; "tracing/..." ; missing packages
- "util/..."
- "verifcid/...")
- #:import-path "github.com/ipfs/boxo"))
+ #:import-path "github.com/ipfs/boxo"
+ #:test-flags
+ #~(list "-skip" (string-join
+ ;; Network access is required.
+ (list "TestAddNewDNSResolver"
+ "TestOverrideDNSDefaults")
+ "|"))))
(native-inputs
- (list go-github-com-stretchr-testify))
+ (list go-github-com-libp2p-go-libp2p-kad-dht-bootstrap
+ go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-alecthomas-units
go-github-com-cespare-xxhash-v2
@@ -213,7 +195,6 @@ JSONMarshal/JSONUnmarshal to store/reload the Bloom filter.")
go-github-com-libp2p-go-buffer-pool
go-github-com-libp2p-go-doh-resolver
go-github-com-libp2p-go-libp2p
- ;; go-github-com-libp2p-go-libp2p-kad-dht
go-github-com-libp2p-go-libp2p-record
go-github-com-libp2p-go-libp2p-routing-helpers
go-github-com-libp2p-go-libp2p-testing
@@ -237,6 +218,7 @@ JSONMarshal/JSONUnmarshal to store/reload the Bloom filter.")
go-go-opencensus-io
go-go-opentelemetry-io-contrib-instrumentation-net-http-otelhttp
go-go-opentelemetry-io-otel
+ go-go-opentelemetry-io-otel-exporters-otlp-otlptrace
go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracegrpc
go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracehttp
go-go-opentelemetry-io-otel-exporters-stdout-stdouttrace