[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/11: gnu: cmake: Run tests in parallel.
From: |
Marius Bakke |
Subject: |
04/11: gnu: cmake: Run tests in parallel. |
Date: |
Tue, 21 Feb 2017 08:58:53 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit d270c606b31ef5574ee1f67e2449b5e5f2b00e2c
Author: Marius Bakke <address@hidden>
Date: Tue Feb 21 04:29:38 2017 +0100
gnu: cmake: Run tests in parallel.
* gnu/packages/cmake.scm (cmake)[arguments]: Add 'set-test-environment'
phase.
---
gnu/packages/cmake.scm | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index da7a9bd..a4e2d38 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -97,8 +97,6 @@
(begin
(setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
(setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
- ;; Get verbose output from failed tests
- (setenv "CTEST_OUTPUT_ON_FAILURE" "TRUE")
#t)))
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
@@ -117,7 +115,15 @@
"--mandir=share/man"
,(string-append
"--docdir=share/doc/cmake-"
- (version-major+minor version))))))))))
+ (version-major+minor version)))))))
+ (add-before 'check 'set-test-environment
+ (lambda _
+ ;; Get verbose output from failed tests.
+ (setenv "CTEST_OUTPUT_ON_FAILURE" "TRUE")
+ ;; Run tests in parallel.
+ (setenv "CTEST_PARALLEL_LEVEL"
+ (number->string (parallel-job-count)))
+ #t)))))
(inputs
`(("file" ,file)
("curl" ,curl)
- branch core-updates updated (3b88f37 -> 9e5af7b), Marius Bakke, 2017/02/21
- 06/11: gnu: xorg-server: Use 'modify-phases' syntax., Marius Bakke, 2017/02/21
- 08/11: gnu: xf86-video-qxl: Change to libxfont2 ABI., Marius Bakke, 2017/02/21
- 04/11: gnu: cmake: Run tests in parallel.,
Marius Bakke <=
- 02/11: gnu: cmake: Update to 3.7.2., Marius Bakke, 2017/02/21
- 09/11: gnu: xf86-video-intel: Change to libxfont2 ABI., Marius Bakke, 2017/02/21
- 01/11: Merge branch 'staging' into core-updates, Marius Bakke, 2017/02/21
- 05/11: gnu: Add address@hidden, Marius Bakke, 2017/02/21
- 07/11: gnu: xorg-server: Update to 1.19.1., Marius Bakke, 2017/02/21
- 11/11: gnu: mesa: Update to 13.0.5., Marius Bakke, 2017/02/21
- 10/11: gnu: xf86-input-wacom: Fix compatibility with xorg ABI 25., Marius Bakke, 2017/02/21
- 03/11: gnu: cmake: Remove bundled software., Marius Bakke, 2017/02/21