mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: eigen: Really run tests in verbose mode.
Suggested by Gaël Guennebaud <gael.guennebaud@inria.fr>. * gnu/packages/algebra.scm (eigen)[arguments]: Remove #:test-target. Rename 'build-tests' phase to 'check', and have it run 'ctest -V'.
This commit is contained in:
parent
08c28b6d5a
commit
ef8742ea69
1 changed files with 7 additions and 15 deletions
|
@ -409,26 +409,18 @@ (define-public eigen
|
||||||
'(;; Turn off debugging symbols to save space.
|
'(;; Turn off debugging symbols to save space.
|
||||||
#:build-type "Release"
|
#:build-type "Release"
|
||||||
|
|
||||||
;; Use 'make check', as per
|
|
||||||
;; <http://eigen.tuxfamily.org/index.php?title=Tests>.
|
|
||||||
#:test-target "check"
|
|
||||||
|
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
(add-before 'check 'build-tests
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
;; First build the tests, in parallel.
|
|
||||||
;; See <http://eigen.tuxfamily.org/index.php?title=Tests>.
|
|
||||||
(let* ((cores (parallel-job-count))
|
(let* ((cores (parallel-job-count))
|
||||||
(dash-j (format #f "-j~a" cores)))
|
(dash-j (format #f "-j~a" cores)))
|
||||||
;; These variables are supposed to be honored.
|
;; First build the tests, in parallel. See
|
||||||
(setenv "EIGEN_MAKE_ARGS" dash-j)
|
;; <http://eigen.tuxfamily.org/index.php?title=Tests>.
|
||||||
|
(and (zero? (system* "make" "buildtests" dash-j))
|
||||||
|
|
||||||
;; Use '-V' to get more details in case of test
|
;; Then run 'CTest' with -V so we get more
|
||||||
;; failures.
|
;; details upon failure.
|
||||||
(setenv "EIGEN_CTEST_ARGS"
|
(zero? (system* "ctest" "-V" dash-j)))))))))
|
||||||
(string-append "-V " dash-j))
|
|
||||||
|
|
||||||
(zero? (system* "make" "buildtests" dash-j))))))))
|
|
||||||
(home-page "http://eigen.tuxfamily.org")
|
(home-page "http://eigen.tuxfamily.org")
|
||||||
(synopsis "C++ template library for linear algebra")
|
(synopsis "C++ template library for linear algebra")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue