[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
64/74: gnu: go-netns: Enable tests.
From: |
guix-commits |
Subject: |
64/74: gnu: go-netns: Enable tests. |
Date: |
Thu, 25 Jul 2024 18:02:29 -0400 (EDT) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit ebf41dcf110fe10814f1c6d7004bff3cfd42fa3a
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Jul 25 21:41:17 2024 +0100
gnu: go-netns: Enable tests.
* gnu/packages/networking.scm (go-netns): Enable most of the tests.
[arguments]: <#:phases>: Add 'disable-failing-tests phase.
Change-Id: I1430de0df4cfab3a922f7a0e5bd0342e82efa871
---
gnu/packages/networking.scm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 9813bc98e8..1afbe585da 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -1932,8 +1932,17 @@ virtual machines, and certificates.")
(base32 "0rci8c211m57nya9il81fz6459pia3dj5i4b16fp34vjrkcxliml"))))
(build-system go-build-system)
(arguments
- `(#:import-path "github.com/vishvananda/netns"
- #:tests? #f)) ;tests require root privileges
+ (list
+ #:import-path "github.com/vishvananda/netns"
+ #: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.
+ (("TestGetNewSetDelete") "OffTestGetNewSetDelete")
+ (("TestThreaded") "OffTestThreaded"))))))))
(propagated-inputs
(list go-golang-org-x-sys))
(home-page "https://github.com/vishvananda/netns")
- 32/74: gnu: nebula: Update to 1.9.3., (continued)
- 32/74: gnu: nebula: Update to 1.9.3., guix-commits, 2024/07/25
- 35/74: gnu: go-github-com-prometheus-client-model: Move to prometheus., guix-commits, 2024/07/25
- 40/74: gnu: Add go-github-com-go-logfmt-logfmt., guix-commits, 2024/07/25
- 45/74: gnu: go-github-com-prometheus-common: Move to prometheus., guix-commits, 2024/07/25
- 52/74: gnu: csvdiff: Adjust inputs, guix-commits, 2024/07/25
- 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 <=
- 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, 2024/07/25
- 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