gnu: cmake: Run tests in parallel.
* gnu/packages/cmake.scm (cmake)[arguments]: Add 'set-test-environment' phase.
This commit is contained in:
parent
db909bf23c
commit
d270c606b3
|
@ -97,8 +97,6 @@
|
||||||
(begin
|
(begin
|
||||||
(setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
|
(setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
|
||||||
(setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
|
(setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
|
||||||
;; Get verbose output from failed tests
|
|
||||||
(setenv "CTEST_OUTPUT_ON_FAILURE" "TRUE")
|
|
||||||
#t)))
|
#t)))
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
@ -117,7 +115,15 @@
|
||||||
"--mandir=share/man"
|
"--mandir=share/man"
|
||||||
,(string-append
|
,(string-append
|
||||||
"--docdir=share/doc/cmake-"
|
"--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
|
(inputs
|
||||||
`(("file" ,file)
|
`(("file" ,file)
|
||||||
("curl" ,curl)
|
("curl" ,curl)
|
||||||
|
|
Loading…
Reference in New Issue