~ruther/guix-local

a67432af330762c7ab4f18a57c141642025b0ab4 — Sharlatan Hellseher 1 year, 2 months ago d86278b
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
1 files changed, 12 insertions(+), 30 deletions(-)

M gnu/packages/ipfs.scm
M gnu/packages/ipfs.scm => gnu/packages/ipfs.scm +12 -30
@@ 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