diff options
author | Danny Milosavljevic <dannym@scratchpost.org> | 2019-04-03 19:00:44 +0200 |
---|---|---|
committer | Danny Milosavljevic <dannym@scratchpost.org> | 2019-04-12 00:26:29 +0200 |
commit | 55548cdc6af701bfa3df51139a9cf8fa3a2fcfa5 (patch) | |
tree | 8a70147ec95dc00381f227ee7c78c753aafd0b14 | |
parent | 88e13c2587ab9a0f96bb63488c253fb14ac9ff60 (diff) | |
download | guix-55548cdc6af701bfa3df51139a9cf8fa3a2fcfa5.tar guix-55548cdc6af701bfa3df51139a9cf8fa3a2fcfa5.tar.gz |
gnu: rust: Enable parallel tests starting with 1.26.
* gnu/packages/rust.scm (rust-1.26)[arguments]<#:phases>[check]: Enable
parallel tests.
-rw-r--r-- | gnu/packages/rust.scm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 5198fd3328..f3b2d7366b 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -724,6 +724,16 @@ jemalloc = \"" jemalloc "/lib/libjemalloc_pic.a" "\" `(modify-phases ,phases ;; binaryen was replaced with LLD project from LLVM (delete 'dont-build-native) + (replace 'check + (lambda* _ + ;; Enable parallel execution. + (let ((parallel-job-spec + (string-append "-j" (number->string + (min 4 + (parallel-job-count)))))) + (invoke "./x.py" parallel-job-spec "test" "-vv") + (invoke "./x.py" parallel-job-spec "test" + "src/tools/cargo")))) (replace 'remove-unsupported-tests (lambda* _ ;; Our ld-wrapper cannot process non-UTF8 bytes in LIBRARY_PATH. |