GNU bug report logs -
#70031
[core-updates PATCH 00/19] Use CMake in build-system/cmake.
Previous Next
Full log
View this message in rfc822 format
* 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
This bug report was last modified 232 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.