[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
47/75: build-system/go: Honor #:parallel-tests?.
From: |
guix-commits |
Subject: |
47/75: build-system/go: Honor #:parallel-tests?. |
Date: |
Sun, 21 Jan 2024 13:21:48 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit f3019cc6b051f420cb274cfb658f6bcaacb6cbc2
Author: Sarah Morgensen <iskarian@mgsn.dev>
AuthorDate: Fri Aug 6 21:48:34 2021 -0700
build-system/go: Honor #:parallel-tests?.
guix/build/go-build-system.scm (build): Honor #:parallel-tests?.
guix/build-system/go.scm (go-build): Add PARALLEL-TESTS? parameter.
[builder]: Use it.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
guix/build-system/go.scm | 2 ++
guix/build/go-build-system.scm | 5 ++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm
index 0acaeca1cc..329e760f66 100644
--- a/guix/build-system/go.scm
+++ b/guix/build-system/go.scm
@@ -185,6 +185,7 @@ commit hash and its date rather than a proper release tag."
(build-flags ''())
(tests? #t)
(parallel-build? #t)
+ (parallel-tests? #t)
(allow-go-reference? #f)
(system (%current-system))
(goarch #f)
@@ -216,6 +217,7 @@ commit hash and its date rather than a proper release tag."
#:build-flags #$build-flags
#:tests? #$tests?
#:parallel-build? #$parallel-build?
+ #:parallel-tests? #$parallel-tests?
#:allow-go-reference? #$allow-go-reference?
#:inputs #$(input-tuples->gexp inputs)))))
diff --git a/guix/build/go-build-system.scm b/guix/build/go-build-system.scm
index a55381b0c6..5346110e86 100644
--- a/guix/build/go-build-system.scm
+++ b/guix/build/go-build-system.scm
@@ -277,9 +277,12 @@ unpacking."
(invoke "go" "env"))))
;; Can this also install commands???
-(define* (check #:key tests? import-path #:allow-other-keys)
+(define* (check #:key tests? import-path (parallel-tests? #t)
+ #:allow-other-keys)
"Run the tests for the package named by IMPORT-PATH."
(when tests?
+ (let* ((njobs (if parallel-tests? (parallel-job-count) 1)))
+ (setenv "GOMAXPROCS" (number->string njobs)))
(invoke "go" "test" import-path))
#t)
- 52/75: gnu: openjdk11: Update home page., (continued)
- 52/75: gnu: openjdk11: Update home page., guix-commits, 2024/01/21
- 55/75: gnu: font-fontna-yasashisa-antique: Remove input labels., guix-commits, 2024/01/21
- 59/75: gnu: python: Normalize sys.prefix in sitecustomize.py., guix-commits, 2024/01/21
- 72/75: gnu: openjdk13: Make reproducible., guix-commits, 2024/01/21
- 19/75: gnu: font-linuxlibertine: Install all license files., guix-commits, 2024/01/21
- 26/75: gnu: font-go: Install license files., guix-commits, 2024/01/21
- 27/75: gnu: font-dosis: Remove extraneous files; install license file., guix-commits, 2024/01/21
- 31/75: gnu: font-jetbrains-mono: Remove obsolete phase., guix-commits, 2024/01/21
- 37/75: gnu: libice: Update to 1.1.0., guix-commits, 2024/01/21
- 40/75: gnu: xset: Update to 1.2.5., guix-commits, 2024/01/21
- 47/75: build-system/go: Honor #:parallel-tests?.,
guix-commits <=
- 60/75: gnu: jemalloc: Build with large page size., guix-commits, 2024/01/21
- 62/75: gnu: mesa: Build asahi driver on aarch64., guix-commits, 2024/01/21
- 71/75: gnu: openjdk12: Make reproducible., guix-commits, 2024/01/21
- 73/75: gnu: openjdk14: Make reproducible., guix-commits, 2024/01/21
- 74/75: gnu: openjdk15: Make reproducible., guix-commits, 2024/01/21
- 41/75: gnu: libxres: Update to 1.2.2., guix-commits, 2024/01/21
- 53/75: gnu: bluez: Update home page URL., guix-commits, 2024/01/21
- 56/75: gnu: font-go: Update home page URL., guix-commits, 2024/01/21
- 67/75: gnu: webrtc-audio-processing: Update to 1.3., guix-commits, 2024/01/21