[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
68/74: gnu: go-netlink: Enable tests.
From: |
guix-commits |
Subject: |
68/74: gnu: go-netlink: Enable tests. |
Date: |
Thu, 25 Jul 2024 18:02:30 -0400 (EDT) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit a80cec86d54d0b4f0d33fdcf018d7e0e51faa853
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Jul 25 21:56:50 2024 +0100
gnu: go-netlink: Enable tests.
* gnu/packages/linux.scm (go-netlink): Enable most of the tests.
[arguments]: <#:phases>: Add 'disable-failing-tests phase.
Change-Id: Ie4fafbc922e98a7eb474f91317995b6502a99108
---
gnu/packages/linux.scm | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 40c14745fa..542ed5945a 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -9305,8 +9305,16 @@ management tools in userspace.")
(build-system go-build-system)
(arguments
(list
- #:tests? #f ; Tests depend on specific kernel modules.
- #:import-path "github.com/vishvananda/netlink"))
+ #:import-path "github.com/vishvananda/netlink"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-failing-tests
+ (lambda* (#:key tests? unpack-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" unpack-path)
+ (substitute* (find-files "." "\\_test.go$")
+ ;; Disable tests requiring root access.
+ (("TestNetNsIdByFd") "OffTestNetNsIdByFd")
+ (("TestNetNsIdByPid") "OffTestNetNsIdByPid"))))))))
(propagated-inputs
(list go-golang-org-x-sys go-github-com-vishvananda-netns))
(home-page "https://github.com/vishvananda/netlink")
- 55/74: gnu: go-github-com-prometheus-client-golang: Enable tests., (continued)
- 55/74: gnu: go-github-com-prometheus-client-golang: Enable tests., guix-commits, 2024/07/25
- 56/74: gnu: go-github-com-prometheus-client-golang: Move to prometheus., guix-commits, 2024/07/25
- 59/74: gnu: go-github-com-prometheus-procfs: Move to prometheus., guix-commits, 2024/07/25
- 60/74: gnu: go-github-com-hjson-hjson-go: Update to 4.4.0., guix-commits, 2024/07/25
- 61/74: gnu: go-github-com-hjson-hjson-go: Rename variable., guix-commits, 2024/07/25
- 64/74: gnu: go-netns: Enable tests., guix-commits, 2024/07/25
- 46/74: gnu: Add go-github-com-prometheus-common-assets., guix-commits, 2024/07/25
- 47/74: gnu: Add go-github-com-prometheus-common-sigv4., guix-commits, 2024/07/25
- 65/74: gnu: go-netns: Rename varialbe., guix-commits, 2024/07/25
- 67/74: gnu: go-netlink: Refresh package style., guix-commits, 2024/07/25
- 68/74: gnu: go-netlink: Enable tests.,
guix-commits <=
- 69/74: gnu: go-netlink: Rename variable., guix-commits, 2024/07/25
- 71/74: gnu: go-github-com-bits-and-blooms-bloom: Rename variable., guix-commits, 2024/07/25
- 72/74: gnu: go-github-com-arceliar-ironwood: Enable tests., guix-commits, 2024/07/25
- 09/74: gnu: go-github-com-google-go-cmp: Move to golang-build., guix-commits, 2024/07/25
- 02/74: gnu: go-golang-org-x-oauth2: Improve package style., guix-commits, 2024/07/25
- 05/74: gnu: go-github-com-google-go-cmp-cmp: Update to 0.6.0., guix-commits, 2024/07/25
- 14/74: gnu: go-github-com-stretchr-testify: Update to 1.9.0., guix-commits, 2024/07/25
- 31/74: gnu: scc: Update to 3.3.5., guix-commits, 2024/07/25
- 38/74: gnu: Add go-github-com-munnerz-goautoneg., guix-commits, 2024/07/25
- 48/74: gnu: go-github-com-beorn7-perks-quantile: Rename variable., guix-commits, 2024/07/25