[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/18: gnu: go-golang-org-x-sys: Enable tests.
From: |
guix-commits |
Subject: |
14/18: gnu: go-golang-org-x-sys: Enable tests. |
Date: |
Thu, 20 Jun 2024 07:55:59 -0400 (EDT) |
sharlatan pushed a commit to branch wip-go-team
in repository guix.
commit aa85e0a1c1481b9e5e9bf273b80a09c8e9738258
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Jun 20 10:07:20 2024 +0100
gnu: go-golang-org-x-sys: Enable tests.
* gnu/packages/golang-build.scm (go-golang-org-x-sys) [arguments]:
<#:tests>: Enable them.
<#:phases>: Add custom 'check phase.
Change-Id: Ie58ea6f0aa677742307d18cfaafcf6ec381c85c9
---
gnu/packages/golang-build.scm | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index 761e7e9d08..121a4ca49a 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -325,12 +325,16 @@ cancelation for groups of goroutines working on subtasks
of a common task
(arguments
(list
#:import-path "golang.org/x/sys"
- ;; Source-only package
- #:tests? #f
#:phases
#~(modify-phases %standard-phases
- ;; Source-only package
- (delete 'build))))
+ ;; XXX: Workaround for go-build-system's lack of Go modules
+ ;; support.
+ (delete 'build)
+ (replace 'check
+ (lambda* (#:key tests? import-path #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion (string-append "src/" import-path)
+ (invoke "go" "test" "-v" "./..."))))))))
(home-page "https://go.googlesource.com/sys")
(synopsis "Go support for low-level system interaction")
(description "This package provides supplemental libraries offering Go
- branch wip-go-team updated (3c59a78345 -> 63c78c19c9), guix-commits, 2024/06/20
- 03/18: gnu: go-github-com-golang-protobuf-proto: Adjust package name., guix-commits, 2024/06/20
- 06/18: gnu: nncp: Apply "-trimpath" flag., guix-commits, 2024/06/20
- 07/18: gnu: dstask: Apply "-trimpath" flag., guix-commits, 2024/06/20
- 08/18: gnu: Remove go-golang.org-x-sync-errgroup., guix-commits, 2024/06/20
- 09/18: gnu: Remove go-golang.org-x-sync-semaphore., guix-commits, 2024/06/20
- 10/18: gnu: go-golang-org-x-sync: Enable tests., guix-commits, 2024/06/20
- 14/18: gnu: go-golang-org-x-sys: Enable tests.,
guix-commits <=
- 16/18: gnu: go-golang-org-x-sys: Fix indentation., guix-commits, 2024/06/20
- 17/18: gnu: go-golang-org-x-crypto: Update to 0.14.0., guix-commits, 2024/06/20
- 02/18: gnu: go-github-com-golang-protobuf-proto: Update to 1.5.3., guix-commits, 2024/06/20
- 05/18: gnu: docker: Apply "-trimpath" flag., guix-commits, 2024/06/20
- 01/18: gnu: go-google-golang-org-protobuf: Update to 1.31.0., guix-commits, 2024/06/20
- 04/18: gnu: skopeo: Apply "-trimpath" flag., guix-commits, 2024/06/20
- 12/18: gnu: go-golang-org-x-sync: Fix indentation., guix-commits, 2024/06/20
- 13/18: gnu: go-golang-org-x-sync: Improve description., guix-commits, 2024/06/20
- 11/18: gnu: go-golang-org-x-sync: Update to 0.7.0., guix-commits, 2024/06/20
- 15/18: gnu: go-golang-org-x-sys: Update to 0.21.0., guix-commits, 2024/06/20