1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 10:30:43 +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

@ -779,10 +779,12 @@ loading algorithms.")
(build-system go-build-system)
(arguments
(list
#:skip-build? #t
#:import-path "golang.org/x/net"
#:phases
#~(modify-phases %standard-phases
(delete 'build)))) ; no go files in project's root
#:test-flags
;; Golang does not support "-race" on ARM, one test fails with error:
;; ThreadSanitizer: unsupported VMA range.
#~(list #$@(if (target-arm?) '("-skip" "TestRace") '()))))
(propagated-inputs
(list go-golang-org-x-crypto
go-golang-org-x-sys
@ -866,6 +868,15 @@ cancellation for groups of goroutines working on subtasks of a common task
(arguments
(list
#:skip-build? #t
#:test-flags
#~(list #$@(if (target-arm?)
'("-skip" (string-join
(list "TestParseOrigDstAddr/udp4"
"TestIoctlGetEthtoolDrvinfo"
"TestIoctlGetEthtoolTsInfo"
"TestRlimitAs")
"|"))
'()))
#:import-path "golang.org/x/sys"))
(home-page "https://go.googlesource.com/sys")
(synopsis "Go support for low-level system interaction")