diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2022-05-26 20:53:02 +0300 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2022-05-28 22:01:09 +0300 |
| commit | f9eac6a7bc14e03361a27ba56cce9261f6bfa0cf (patch) | |
| tree | 61d582bc2700a789dd85a25b62508552e17a51de /gnu/packages/autotools.scm | |
| parent | 1da2834720c99c3707d17e4bf12e409b1a374b29 (diff) | |
gnu: libtool: Honor parallel-tests flag.
* gnu/packages/autotools.scm (libtool)[arguments]: Adjust custom
'pre-check phase to honor the parallel-tests? flag.
Diffstat (limited to 'gnu/packages/autotools.scm')
| -rw-r--r-- | gnu/packages/autotools.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/packages/autotools.scm b/gnu/packages/autotools.scm index a46ac092288..9d4e7718d2e 100644 --- a/gnu/packages/autotools.scm +++ b/gnu/packages/autotools.scm | |||
| @@ -485,12 +485,14 @@ Makefile, simplifying the entire process for the developer.") | |||
| 485 | #:phases | 485 | #:phases |
| 486 | (modify-phases %standard-phases | 486 | (modify-phases %standard-phases |
| 487 | (add-before 'check 'pre-check | 487 | (add-before 'check 'pre-check |
| 488 | (lambda* (#:key inputs native-inputs #:allow-other-keys) | 488 | (lambda* (#:key inputs native-inputs parallel-tests? #:allow-other-keys) |
| 489 | ;; Run the test suite in parallel, if possible. | 489 | ;; Run the test suite in parallel, if possible. |
| 490 | (setenv "TESTSUITEFLAGS" | 490 | (setenv "TESTSUITEFLAGS" |
| 491 | (string-append | 491 | (string-append |
| 492 | "-j" | 492 | "-j" |
| 493 | (number->string (parallel-job-count)))) | 493 | (if parallel-tests? |
| 494 | (number->string (parallel-job-count)) | ||
| 495 | "1"))) | ||
| 494 | ;; Patch references to /bin/sh. | 496 | ;; Patch references to /bin/sh. |
| 495 | (let ((bash (assoc-ref (or native-inputs inputs) "bash"))) | 497 | (let ((bash (assoc-ref (or native-inputs inputs) "bash"))) |
| 496 | (substitute* "tests/testsuite" | 498 | (substitute* "tests/testsuite" |
