1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-16 20:10:39 +02:00

gnu: packages/golang-*: Skip some tests on ARM.

* gnu/packages/golang-build.scm (go-golang-org-x-sys) [arguments]
<test-flags>: Skip 4 failing tests on ARM systems.
(go-golang-org-x-net) [arguments] <test-flags>: Skip 2 tests on ARM
systems.  <phases>: Do not delete 'build, skip it.

* gnu/packages/golang-check.scm (go-github-com-smartystreets-goconvey)
[arguments] <test-flags>: Skip one failing test on ARM systems.

* gnu/packages/golang-maths.scm (go-gonum-org-v1-gonum) [arguments]
<test-subdirs>: Skip tests in "spatial" on non x86-64 systems.

* gnu/packages/golang-web.scm (go-github-com-safchain-ethtool)
[arguments] <test-flags>: Skip one test failing on ARM.
(go-github-com-mdlayher-socket) [arguments] <test-flags>: Skip one test
on ARM systems.
(go-github-com-mdlayher-netlink) [arguments] <test-flags>: Skip some
failing tests on ARM systems.
(go-github-com-mikioh-tcp) [arguments] <test-flags>: Move logic here,
skip one test on ARM system.  <phases>: Remove 'disable-failing-tests.
(go-github-com-libp2p-go-yamux-v4) [arguments] <test-flags>: Skip one
failing test on ARM systems.
(go-github-com-libp2p-go-yamux-v5) [arguments]: Inherit from
go-github-com-libp2p-go-yamux-v4.
(go-github-com-marten-seemann-tcp) [arguments] <test-flags>: Move logic
here, and skip one failing test on ARM system.  <phases>: Remove
'disable-failing-tests.

* gnu/packages/golang-xyz.scm (go-github-com-jbenet-go-temp-err-catcher)
[arguments] <test-flags>: Skip one failing test on ARM system.
(go-github-com-jbenet-goprocess): [arguments] <test-flags>: Run short
tests only skip 7 tests on ARM systems.
(go-github-com-cilium-ebpf) [arguments] <test-flags>: Skip 2 failing
tests on ARM system.
(go-github-com-elastic-gosigar) [arguments] <test-flags>: Utilize it and
skip 2 failing tests on ARM systems.  <phases>: Remove
'disable-failing-tests.

Change-Id: I191cd2a20a16eef0c77b04f0f6fdf72a3bb8d3be
This commit is contained in:
Sharlatan Hellseher 2025-03-21 21:59:21 +00:00
parent 0dff26eac4
commit 08da56701f
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
5 changed files with 164 additions and 65 deletions

View file

@ -5366,7 +5366,14 @@ daemon as described in
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/libp2p/go-yamux/v4"))
#:import-path "github.com/libp2p/go-yamux/v4"
#:test-flags
;; Test fails on ARM with error: [ERR] yamux: Failed to read stream data
;; on stream 1: receive window exceeded (remain: 262144, recv:
;; 33554432).
#~(list #$@(if (target-arm?)
'("-skip" "TestSendData_VeryLarge")
'()))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
@ -5396,8 +5403,9 @@ It is inspired by SPDY but is not interoperable with it.")
(base32 "019jj3qwzrbqcgwzri5iwi1vh2cn0ms6k8fx14jlmy856b25yl3y"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/libp2p/go-yamux/v5"))))
(substitute-keyword-arguments
(package-arguments go-github-com-libp2p-go-yamux-v4)
((#:import-path _) "github.com/libp2p/go-yamux/v5")))))
(define-public go-github-com-libp2p-zeroconf-v2
(package
@ -5561,19 +5569,22 @@ clients that speak the Gemini protocol.")
(arguments
(list
#:import-path "github.com/marten-seemann/tcp"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* (find-files "." "_test\\.go$")
;; couldn't initialize from a wrapped conn: unknown
;; connection type
(("TestWrappedConn") "OffTestWrappedConn")
;; Get "https://golang.org/robots.txt": dial tcp: lookup
;; golang.org on [::1]:53: read udp [::1]:56806->[::1]:53:
;; read: connection refused
(("TestInfo") "OffTestInfo"))))))))
#:test-flags
#~(list "-skip"
(string-join
;; Test fails with error: couldn't initialize from a wrapped
;; conn: unknown connection type.
(list "TestWrappedConn"
;; Get "https://golang.org/robots.txt": dial tcp: lookup
;; golang.org on [::1]:53: read udp
;; [::1]:56806->[::1]:53: read: connection refused
"TestInfo"
;; Test fails on ARM with error: raw-control tcp
;; 127.0.0.1:49386: getsockopt: protocol not available.
#$@(if (target-arm?)
'("TestConcurrentReadWriteAndInfo")
'()))
"|"))))
(native-inputs
(list go-golang-org-x-net))
(propagated-inputs
@ -5842,9 +5853,29 @@ types.")
(list
#:import-path "github.com/mdlayher/netlink"
#:test-flags
;; Test fails to start command "ip": exec: "ip": executable file not
;; found in $PATH
#~(list "-skip" "TestIntegrationConnSetBuffersSyscallConn")))
#~(list "-skip"
(string-join
;; Test fails to start command "ip": exec: "ip": executable
;; file not found in $PATH
(list "TestIntegrationConnSetBuffersSyscallConn"
#$@(if (target-arm?)
;; Tests fail on ARM systems with error: failed to
;; dial netlink: socket: protocol not supported.
'("TestIntegrationConn"
"TestIntegrationConnClosedConn"
"TestIntegrationConnConcurrentClosePreventsReceive"
"TestIntegrationConnConcurrentCloseUnblocksReceive"
"TestIntegrationConnConcurrentOneConn"
"TestIntegrationConnConcurrentSerializeExecute"
"TestIntegrationConnExecuteTimeout"
"TestIntegrationConnExplicitPID"
"TestIntegrationConnReceiveTimeout"
"TestIntegrationConnSendTimeout"
"TestIntegrationConnSetBPF"
"TestIntegrationConnSetBPFEmpty"
"TestIntegrationConnStrict")
'())
"|")))))
(propagated-inputs
(list go-github-com-google-go-cmp
go-github-com-josharian-native
@ -5874,11 +5905,21 @@ sockets (AF_NETLINK).")
(build-system go-build-system)
(arguments
(list
#:test-flags
#~(list
;; One test fails on ARM with error: conn_linux_test.go:120:
;; skipping, permission denied: failed to unshare network namespace:
;; operation not permitted
#$@(if (target-arm?)
'("-skip" "TestLinuxBindToDevice")
'()))
#:import-path "github.com/mdlayher/socket"))
(native-inputs
(list go-github-com-google-go-cmp))
(propagated-inputs
(list go-golang-org-x-net go-golang-org-x-sync go-golang-org-x-sys))
(list go-golang-org-x-net
go-golang-org-x-sync
go-golang-org-x-sys))
(home-page "https://github.com/mdlayher/socket")
(synopsis "Low-level network connection type with async I/O and deadline support")
(description
@ -6092,16 +6133,20 @@ presenting a small interface.")
(arguments
(list
#:import-path "github.com/mikioh/tcp"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* (find-files "." "_test\\.go$")
;; Get "https://golang.org/robots.txt": dial tcp: lookup
;; golang.org on [::1]:53: read udp [::1]:47181->[::1]:53:
;; read: connection refused.
(("TestInfo") "OffTestInfo"))))))))
#:test-flags
#~(list "-skip"
(string-join
;; Get "https://golang.org/robots.txt": dial tcp: lookup
;; golang.org on [::1]:53: read udp [::1]:47181->[::1]:53:
;; read: connection refused.
(list "TestInfo"
#$@(if (target-arm?)
;; Test fails on ARM with error: raw-control tcp
;; 127.0.0.1:58464: getsockopt: protocol not
;; available.
'("TestConcurrentReadWriteAndInfo")
'()))
"|"))))
(native-inputs
(list go-golang-org-x-net))
(propagated-inputs
@ -8160,7 +8205,11 @@ ObjectStorage, PHY, etc.).")
"TestMsglvlGet"
"TestStats"
"TestDriverName"
"TestBusInfo")
"TestBusInfo"
#$@(if (target-arm?)
;; Inappropriate ioctl for device.
'("TestFeatures")
'()))
"|"))))
(propagated-inputs
(list go-golang-org-x-sys))