mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: libtool: Honor parallel-tests flag.
* gnu/packages/autotools.scm (libtool)[arguments]: Adjust custom 'pre-check phase to honor the parallel-tests? flag.
This commit is contained in:
parent
1da2834720
commit
f9eac6a7bc
1 changed files with 4 additions and 2 deletions
|
@ -485,12 +485,14 @@ (define-public libtool
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'check 'pre-check
|
||||
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
||||
(lambda* (#:key inputs native-inputs parallel-tests? #:allow-other-keys)
|
||||
;; Run the test suite in parallel, if possible.
|
||||
(setenv "TESTSUITEFLAGS"
|
||||
(string-append
|
||||
"-j"
|
||||
(number->string (parallel-job-count))))
|
||||
(if parallel-tests?
|
||||
(number->string (parallel-job-count))
|
||||
"1")))
|
||||
;; Patch references to /bin/sh.
|
||||
(let ((bash (assoc-ref (or native-inputs inputs) "bash")))
|
||||
(substitute* "tests/testsuite"
|
||||
|
|
Loading…
Reference in a new issue