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
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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"