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:
parent
0dff26eac4
commit
08da56701f
5 changed files with 164 additions and 65 deletions
|
@ -779,10 +779,12 @@ loading algorithms.")
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:skip-build? #t
|
||||||
#:import-path "golang.org/x/net"
|
#:import-path "golang.org/x/net"
|
||||||
#:phases
|
#:test-flags
|
||||||
#~(modify-phases %standard-phases
|
;; Golang does not support "-race" on ARM, one test fails with error:
|
||||||
(delete 'build)))) ; no go files in project's root
|
;; ThreadSanitizer: unsupported VMA range.
|
||||||
|
#~(list #$@(if (target-arm?) '("-skip" "TestRace") '()))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-golang-org-x-crypto
|
(list go-golang-org-x-crypto
|
||||||
go-golang-org-x-sys
|
go-golang-org-x-sys
|
||||||
|
@ -866,6 +868,15 @@ cancellation for groups of goroutines working on subtasks of a common task
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:skip-build? #t
|
#:skip-build? #t
|
||||||
|
#:test-flags
|
||||||
|
#~(list #$@(if (target-arm?)
|
||||||
|
'("-skip" (string-join
|
||||||
|
(list "TestParseOrigDstAddr/udp4"
|
||||||
|
"TestIoctlGetEthtoolDrvinfo"
|
||||||
|
"TestIoctlGetEthtoolTsInfo"
|
||||||
|
"TestRlimitAs")
|
||||||
|
"|"))
|
||||||
|
'()))
|
||||||
#:import-path "golang.org/x/sys"))
|
#:import-path "golang.org/x/sys"))
|
||||||
(home-page "https://go.googlesource.com/sys")
|
(home-page "https://go.googlesource.com/sys")
|
||||||
(synopsis "Go support for low-level system interaction")
|
(synopsis "Go support for low-level system interaction")
|
||||||
|
|
|
@ -1949,7 +1949,10 @@ execution when a test fails.")
|
||||||
"TestStackModeMultipleInvocationInheritance"
|
"TestStackModeMultipleInvocationInheritance"
|
||||||
"TestStackModeMultipleInvocationInheritance2"
|
"TestStackModeMultipleInvocationInheritance2"
|
||||||
"TestStackModeMultipleInvocationInheritance3"
|
"TestStackModeMultipleInvocationInheritance3"
|
||||||
"TestWatcher")
|
"TestWatcher"
|
||||||
|
#$@(if (target-arm?)
|
||||||
|
'("TestInfiniteLoopWithTrailingFail")
|
||||||
|
'()))
|
||||||
"|"))))
|
"|"))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-github-com-jtolds-gls
|
(list go-github-com-jtolds-gls
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix build-system go)
|
#:use-module (guix build-system go)
|
||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix utils)
|
||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
|
@ -299,7 +300,11 @@ format as binary16.")
|
||||||
"mathext/..."
|
"mathext/..."
|
||||||
"num/..."
|
"num/..."
|
||||||
"optimize/..."
|
"optimize/..."
|
||||||
"spatial/..."
|
;; Tests failing to compile on ARM systems with errors in
|
||||||
|
;; goroutines.
|
||||||
|
#$@(if (target-x86-64?)
|
||||||
|
'("spatial/...")
|
||||||
|
'())
|
||||||
"stat/..."
|
"stat/..."
|
||||||
"uniti/...")))
|
"uniti/...")))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
|
|
@ -5366,7 +5366,14 @@ daemon as described in
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(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
|
(native-inputs
|
||||||
(list go-github-com-stretchr-testify))
|
(list go-github-com-stretchr-testify))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
@ -5396,8 +5403,9 @@ It is inspired by SPDY but is not interoperable with it.")
|
||||||
(base32 "019jj3qwzrbqcgwzri5iwi1vh2cn0ms6k8fx14jlmy856b25yl3y"))))
|
(base32 "019jj3qwzrbqcgwzri5iwi1vh2cn0ms6k8fx14jlmy856b25yl3y"))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(substitute-keyword-arguments
|
||||||
#:import-path "github.com/libp2p/go-yamux/v5"))))
|
(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
|
(define-public go-github-com-libp2p-zeroconf-v2
|
||||||
(package
|
(package
|
||||||
|
@ -5561,19 +5569,22 @@ clients that speak the Gemini protocol.")
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:import-path "github.com/marten-seemann/tcp"
|
#:import-path "github.com/marten-seemann/tcp"
|
||||||
#:phases
|
#:test-flags
|
||||||
#~(modify-phases %standard-phases
|
#~(list "-skip"
|
||||||
(add-after 'unpack 'disable-failing-tests
|
(string-join
|
||||||
(lambda* (#:key tests? import-path #:allow-other-keys)
|
;; Test fails with error: couldn't initialize from a wrapped
|
||||||
(with-directory-excursion (string-append "src/" import-path)
|
;; conn: unknown connection type.
|
||||||
(substitute* (find-files "." "_test\\.go$")
|
(list "TestWrappedConn"
|
||||||
;; couldn't initialize from a wrapped conn: unknown
|
;; Get "https://golang.org/robots.txt": dial tcp: lookup
|
||||||
;; connection type
|
;; golang.org on [::1]:53: read udp
|
||||||
(("TestWrappedConn") "OffTestWrappedConn")
|
;; [::1]:56806->[::1]:53: read: connection refused
|
||||||
;; Get "https://golang.org/robots.txt": dial tcp: lookup
|
"TestInfo"
|
||||||
;; golang.org on [::1]:53: read udp [::1]:56806->[::1]:53:
|
;; Test fails on ARM with error: raw-control tcp
|
||||||
;; read: connection refused
|
;; 127.0.0.1:49386: getsockopt: protocol not available.
|
||||||
(("TestInfo") "OffTestInfo"))))))))
|
#$@(if (target-arm?)
|
||||||
|
'("TestConcurrentReadWriteAndInfo")
|
||||||
|
'()))
|
||||||
|
"|"))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list go-golang-org-x-net))
|
(list go-golang-org-x-net))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
@ -5842,9 +5853,29 @@ types.")
|
||||||
(list
|
(list
|
||||||
#:import-path "github.com/mdlayher/netlink"
|
#:import-path "github.com/mdlayher/netlink"
|
||||||
#:test-flags
|
#:test-flags
|
||||||
;; Test fails to start command "ip": exec: "ip": executable file not
|
#~(list "-skip"
|
||||||
;; found in $PATH
|
(string-join
|
||||||
#~(list "-skip" "TestIntegrationConnSetBuffersSyscallConn")))
|
;; 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
|
(propagated-inputs
|
||||||
(list go-github-com-google-go-cmp
|
(list go-github-com-google-go-cmp
|
||||||
go-github-com-josharian-native
|
go-github-com-josharian-native
|
||||||
|
@ -5874,11 +5905,21 @@ sockets (AF_NETLINK).")
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(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"))
|
#:import-path "github.com/mdlayher/socket"))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list go-github-com-google-go-cmp))
|
(list go-github-com-google-go-cmp))
|
||||||
(propagated-inputs
|
(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")
|
(home-page "https://github.com/mdlayher/socket")
|
||||||
(synopsis "Low-level network connection type with async I/O and deadline support")
|
(synopsis "Low-level network connection type with async I/O and deadline support")
|
||||||
(description
|
(description
|
||||||
|
@ -6092,16 +6133,20 @@ presenting a small interface.")
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:import-path "github.com/mikioh/tcp"
|
#:import-path "github.com/mikioh/tcp"
|
||||||
#:phases
|
#:test-flags
|
||||||
#~(modify-phases %standard-phases
|
#~(list "-skip"
|
||||||
(add-after 'unpack 'disable-failing-tests
|
(string-join
|
||||||
(lambda* (#:key tests? import-path #:allow-other-keys)
|
;; Get "https://golang.org/robots.txt": dial tcp: lookup
|
||||||
(with-directory-excursion (string-append "src/" import-path)
|
;; golang.org on [::1]:53: read udp [::1]:47181->[::1]:53:
|
||||||
(substitute* (find-files "." "_test\\.go$")
|
;; read: connection refused.
|
||||||
;; Get "https://golang.org/robots.txt": dial tcp: lookup
|
(list "TestInfo"
|
||||||
;; golang.org on [::1]:53: read udp [::1]:47181->[::1]:53:
|
#$@(if (target-arm?)
|
||||||
;; read: connection refused.
|
;; Test fails on ARM with error: raw-control tcp
|
||||||
(("TestInfo") "OffTestInfo"))))))))
|
;; 127.0.0.1:58464: getsockopt: protocol not
|
||||||
|
;; available.
|
||||||
|
'("TestConcurrentReadWriteAndInfo")
|
||||||
|
'()))
|
||||||
|
"|"))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list go-golang-org-x-net))
|
(list go-golang-org-x-net))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
@ -8160,7 +8205,11 @@ ObjectStorage, PHY, etc.).")
|
||||||
"TestMsglvlGet"
|
"TestMsglvlGet"
|
||||||
"TestStats"
|
"TestStats"
|
||||||
"TestDriverName"
|
"TestDriverName"
|
||||||
"TestBusInfo")
|
"TestBusInfo"
|
||||||
|
#$@(if (target-arm?)
|
||||||
|
;; Inappropriate ioctl for device.
|
||||||
|
'("TestFeatures")
|
||||||
|
'()))
|
||||||
"|"))))
|
"|"))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-golang-org-x-sys))
|
(list go-golang-org-x-sys))
|
||||||
|
|
|
@ -3186,25 +3186,31 @@ levels that works by wrapping the standard @code{log} library.")
|
||||||
(list
|
(list
|
||||||
#:import-path "github.com/cilium/ebpf"
|
#:import-path "github.com/cilium/ebpf"
|
||||||
#:test-flags
|
#:test-flags
|
||||||
;; Tests fail with errors:
|
#~(list "-skip"
|
||||||
;; - neither debugfs nor tracefs are mounted
|
(string-join
|
||||||
;; - no such file or directory
|
;; Tests fail with errors:
|
||||||
#~(list "-skip" (string-join
|
;; - neither debugfs nor tracefs are mounted
|
||||||
(list
|
;; - no such file or directory
|
||||||
"TestNewEvent"
|
(list "TestNewEvent"
|
||||||
"TestFSType"
|
"TestFSType"
|
||||||
"TestEventID"
|
"TestEventID"
|
||||||
"TestSanitizePath"
|
"TestSanitizePath"
|
||||||
"TestGetTracefsPath"
|
"TestGetTracefsPath"
|
||||||
;; Tests failing on i686-linux system.
|
;; Tests failing on i686-linux system.
|
||||||
#$@(if (target-x86?)
|
#$@(if (target-x86?)
|
||||||
'("TestAuxvVDSOMemoryAddress/auxv64le.bin"
|
'("TestAuxvVDSOMemoryAddress/auxv64le.bin"
|
||||||
"TestUnsafeB.*/.*_with_trailing_padding"
|
"TestUnsafeB.*/.*_with_trailing_padding"
|
||||||
"TestUnsafeB.*/.*_with_interspersed_padding"
|
"TestUnsafeB.*/.*_with_interspersed_padding"
|
||||||
"TestUnsafeB.*/.*_between_slice_entries"
|
"TestUnsafeB.*/.*_between_slice_entries"
|
||||||
"TestUnsafeB.*/.*_between_array_entries")
|
"TestUnsafeB.*/.*_between_array_entries")
|
||||||
'()))
|
'())
|
||||||
"|"))
|
;; Tests failing on ARM systems with error: reading vDSO
|
||||||
|
;; ELF: read /proc/self/mem: input/output error.
|
||||||
|
#$@(if (target-arm?)
|
||||||
|
'("TestVDSOVersion"
|
||||||
|
"TestCurrentKernelVersion")
|
||||||
|
'()))
|
||||||
|
"|"))
|
||||||
;; XXX: 337 tests failed and 664 passed when "..." is preserved, run
|
;; XXX: 337 tests failed and 664 passed when "..." is preserved, run
|
||||||
;; some of available tests, figure out how to fix the rests.
|
;; some of available tests, figure out how to fix the rests.
|
||||||
#:test-subdirs
|
#:test-subdirs
|
||||||
|
@ -5232,14 +5238,20 @@ program's running, don't expect consistent results between platforms
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:import-path "github.com/elastic/gosigar"
|
#:import-path "github.com/elastic/gosigar"
|
||||||
#:phases
|
#:test-flags
|
||||||
#~(modify-phases %standard-phases
|
#~(list "-skip"
|
||||||
(add-after 'unpack 'disable-failing-tests
|
(string-join
|
||||||
(lambda* (#:key tests? import-path #:allow-other-keys)
|
;; Test fails with error: open /etc/mtab: no such file or
|
||||||
(with-directory-excursion (string-append "src/" import-path)
|
;; directory.
|
||||||
(substitute* (find-files "." "_test\\.go$")
|
(list "TestFileSystemList"
|
||||||
;; error: open /etc/mtab: no such file or directory.
|
;; Test fails on ARM with error: inetdiag_test.go:61:
|
||||||
(("TestFileSystemList") "OffTestFileSystemList"))))))))
|
;; protocol not supported.
|
||||||
|
#$@(if (target-arm?)
|
||||||
|
'("TestNetlinkInetDiag"
|
||||||
|
;; Expect "qemu-aarch64" to match "go(.exe)?"
|
||||||
|
"TestProcExe")
|
||||||
|
'()))
|
||||||
|
"|"))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list go-github-com-stretchr-testify))
|
(list go-github-com-stretchr-testify))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
@ -8994,7 +9006,11 @@ wrapper around @code{crypto/rand}.")
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:import-path "github.com/jbenet/go-temp-err-catcher"))
|
#:import-path "github.com/jbenet/go-temp-err-catcher"
|
||||||
|
#:test-flags
|
||||||
|
;; One test fails on ARM with error: tec_test.go:86: time difference is
|
||||||
|
;; greater than 0s 71.555µs.
|
||||||
|
#~(list #$@(if (target-arm?) '("-skip" "TestDoubles") '()))))
|
||||||
(home-page "https://github.com/jbenet/go-temp-err-catcher")
|
(home-page "https://github.com/jbenet/go-temp-err-catcher")
|
||||||
(synopsis "Error handling helper library")
|
(synopsis "Error handling helper library")
|
||||||
(description "Package @code{temperrcatcher} provides a @code{TempErrCatcher}
|
(description "Package @code{temperrcatcher} provides a @code{TempErrCatcher}
|
||||||
|
@ -9017,7 +9033,22 @@ object, which implements simple error-retrying functionality.")
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:import-path "github.com/jbenet/goprocess"))
|
#:import-path "github.com/jbenet/goprocess"
|
||||||
|
#:test-flags
|
||||||
|
#~(list "-short"
|
||||||
|
;; Tests fail on ARM with error: periodic_test.go:31: time diff
|
||||||
|
;; incorrect: 5ms 3.295666ms 15ms.
|
||||||
|
#$@(if (target-arm?)
|
||||||
|
'("-skip" (string-join
|
||||||
|
(list "TestEveryGoSeqParallel"
|
||||||
|
"TestEverySeq"
|
||||||
|
"TestTickSeq"
|
||||||
|
"TestTickSeqNoWait"
|
||||||
|
"TestTickerGoParallel"
|
||||||
|
"TestTickerGoSeq"
|
||||||
|
"TestTickerSeq")
|
||||||
|
"|"))
|
||||||
|
'()))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list go-github-com-jbenet-go-cienv))
|
(list go-github-com-jbenet-go-cienv))
|
||||||
(home-page "https://github.com/jbenet/goprocess")
|
(home-page "https://github.com/jbenet/goprocess")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue