[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70031] [PATCH v2 16/65] gnu: igraph: Fix tests.
From: |
Greg Hogan |
Subject: |
[bug#70031] [PATCH v2 16/65] gnu: igraph: Fix tests. |
Date: |
Tue, 22 Oct 2024 18:09:06 +0000 |
* gnu/packages/graph.scm (igraph)[arguments]: Replace 'check phase to
replace the old cmake-build-system test target.
Change-Id: I88e10e714744433227975575c6bb94d3f205474c
---
gnu/packages/graph.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index 02033c25b3..5351440450 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -144,7 +144,6 @@ (define-public igraph
;; Use the same integer width as suitesparse-cxsparse, which
;; uses int64_t in SuiteSparse v6.0.0 and later.
"-DIGRAPH_INTEGER_SIZE=64")
- #:test-target "check"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'version-file
@@ -176,6 +175,15 @@ (define-public igraph
(add-after 'build 'build-doc
(lambda _
(invoke "cmake" "--build" "." "--target" "html")))
+ (replace 'check
+ (lambda* (#:key parallel-tests? tests? #:allow-other-keys)
+ (when tests?
+ (let ((job-count (if parallel-tests?
+ (number->string (parallel-job-count))
+ "1")))
+ ;; Test artifacts and actions are built and run with the
+ ;; 'check' target.
+ (invoke "make" "-j" job-count "check")))))
(add-after 'install 'install-doc
(lambda _
(copy-recursively
--
2.46.1
- [bug#70031] [PATCH v2 02/65] build-system/cmake: Add generator fields., (continued)
- [bug#70031] [PATCH v2 02/65] build-system/cmake: Add generator fields., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 03/65] build-system/qt: Add generator fields., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 08/65] build-system/qt: Add test-exclude fields., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 09/65] build-system/cmake: Add test exclusion., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 05/65] build-system/cmake: Add build., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 07/65] build-system/cmake: Add test-exclude fields., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 06/65] build-system/cmake: Add install., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 11/65] build-system/cmake: Include ninja., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 12/65] build-system/qt: Include ninja., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 14/65] gnu: rdma-core: Remove custom phases., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 16/65] gnu: igraph: Fix tests.,
Greg Hogan <=
- [bug#70031] [PATCH v2 19/65] gnu: kirigami: Fix tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 13/65] gnu: astroid: Remove custom phases., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 18/65] gnu: inkscape/stable: Fix tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 22/65] gnu: cpp-httplib: Disable parallel tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 23/65] gnu: evolution-data-server: Disable parallel tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 24/65] gnu: kservice: Disable parallel tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 30/65] gnu: vulkan-loader: Disable parallel tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 10/65] build-system/cmake: Optionally build tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 15/65] gnu: fish: Fix tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 35/65] gnu: nextcloud-client: Use #:test-exclude., Greg Hogan, 2024/10/22