summaryrefslogtreecommitdiff
path: root/gnu/packages/golang-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-03-21 21:59:21 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-05-26 16:50:33 +0100
commit08da56701f085db66ba82955c738323cd6384cd7 (patch)
tree6033fe1df930285fffdceb55dce0f36a0666db5b /gnu/packages/golang-xyz.scm
parent0dff26eac4d25337316dcedc5edf721262337561 (diff)
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
Diffstat (limited to 'gnu/packages/golang-xyz.scm')
-rw-r--r--gnu/packages/golang-xyz.scm89
1 files changed, 60 insertions, 29 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 399ead8952..aedbe97864 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3186,25 +3186,31 @@ levels that works by wrapping the standard @code{log} library.")
(list
#:import-path "github.com/cilium/ebpf"
#:test-flags
- ;; Tests fail with errors:
- ;; - neither debugfs nor tracefs are mounted
- ;; - no such file or directory
- #~(list "-skip" (string-join
- (list
- "TestNewEvent"
- "TestFSType"
- "TestEventID"
- "TestSanitizePath"
- "TestGetTracefsPath"
- ;; Tests failing on i686-linux system.
- #$@(if (target-x86?)
- '("TestAuxvVDSOMemoryAddress/auxv64le.bin"
- "TestUnsafeB.*/.*_with_trailing_padding"
- "TestUnsafeB.*/.*_with_interspersed_padding"
- "TestUnsafeB.*/.*_between_slice_entries"
- "TestUnsafeB.*/.*_between_array_entries")
- '()))
- "|"))
+ #~(list "-skip"
+ (string-join
+ ;; Tests fail with errors:
+ ;; - neither debugfs nor tracefs are mounted
+ ;; - no such file or directory
+ (list "TestNewEvent"
+ "TestFSType"
+ "TestEventID"
+ "TestSanitizePath"
+ "TestGetTracefsPath"
+ ;; Tests failing on i686-linux system.
+ #$@(if (target-x86?)
+ '("TestAuxvVDSOMemoryAddress/auxv64le.bin"
+ "TestUnsafeB.*/.*_with_trailing_padding"
+ "TestUnsafeB.*/.*_with_interspersed_padding"
+ "TestUnsafeB.*/.*_between_slice_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
;; some of available tests, figure out how to fix the rests.
#:test-subdirs
@@ -5232,14 +5238,20 @@ program's running, don't expect consistent results between platforms
(arguments
(list
#:import-path "github.com/elastic/gosigar"
- #: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$")
- ;; error: open /etc/mtab: no such file or directory.
- (("TestFileSystemList") "OffTestFileSystemList"))))))))
+ #:test-flags
+ #~(list "-skip"
+ (string-join
+ ;; Test fails with error: open /etc/mtab: no such file or
+ ;; directory.
+ (list "TestFileSystemList"
+ ;; Test fails on ARM with error: inetdiag_test.go:61:
+ ;; protocol not supported.
+ #$@(if (target-arm?)
+ '("TestNetlinkInetDiag"
+ ;; Expect "qemu-aarch64" to match "go(.exe)?"
+ "TestProcExe")
+ '()))
+ "|"))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
@@ -8994,7 +9006,11 @@ wrapper around @code{crypto/rand}.")
(build-system go-build-system)
(arguments
(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")
(synopsis "Error handling helper library")
(description "Package @code{temperrcatcher} provides a @code{TempErrCatcher}
@@ -9017,7 +9033,22 @@ object, which implements simple error-retrying functionality.")
(build-system go-build-system)
(arguments
(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
(list go-github-com-jbenet-go-cienv))
(home-page "https://github.com/jbenet/goprocess")