gnu: cmake: Disable parallel tests.

* gnu/packages/cmake.scm (cmake)[arguments]: Add #:parallel-tests?.
  Set 'CTEST_OUTPUT_ON_FAILURE' to 'TRUE' in 'set-paths phase.
This commit is contained in:
宋文武 2015-04-28 17:16:18 +08:00
parent 477a752e89
commit e32316e62f
1 changed files with 4 additions and 1 deletions

View File

@ -49,6 +49,7 @@
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:test-target "test" `(#:test-target "test"
#:parallel-tests? #f ; 3 test from RunCMake fails
#:phases (alist-cons-before #:phases (alist-cons-before
'configure 'patch-bin-sh 'configure 'patch-bin-sh
(lambda _ (lambda _
@ -76,7 +77,9 @@
;; Help cmake's bootstrap process to find system libraries ;; Help cmake's bootstrap process to find system libraries
(begin (begin
(setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH")) (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
(setenv "CMAKE_INCLUDE_PATH" (getenv "CPATH")))) (setenv "CMAKE_INCLUDE_PATH" (getenv "CPATH"))
;; Get verbose output from failed tests
(setenv "CTEST_OUTPUT_ON_FAILURE" "TRUE")))
(alist-replace (alist-replace
'configure 'configure
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)