1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02: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:
Efraim Flashner
2022-05-26 20:53:02 +03:00
parent 1da2834720
commit f9eac6a7bc

View File

@@ -485,12 +485,14 @@ Makefile, simplifying the entire process for the developer.")
#: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"