[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
247/475: gnu: rust: Fix test suite on some architectures.
From: |
guix-commits |
Subject: |
247/475: gnu: rust: Fix test suite on some architectures. |
Date: |
Sun, 7 May 2023 12:47:14 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 9ac27d1b82c8f2d837630afa8796147575015170
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Mar 8 22:07:15 2023 +0200
gnu: rust: Fix test suite on some architectures.
* gnu/packages/rust.scm (rust)[arguments]: In the custom
'patch-process-tests phase rewrite the logic for skipping some tests so
that it doesn't cause errors on aarch64-linux or riscv64-linux.
---
gnu/packages/rust.scm | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 6672197f31..c3a581308b 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -760,13 +760,11 @@ safety and thread safety guarantees.")
(substitute* "library/std/src/process/tests.rs"
(("\"/bin/sh\"")
(string-append "\"" bash "/bin/sh\"")))
+ ;; The three tests which are known to fail upstream on QEMU
+ ;; emulation on aarch64 and riscv64 also fail on x86_64 in
Guix's
+ ;; build system. Skip them on all builds.
(substitute*
"library/std/src/sys/unix/process/process_common/tests.rs"
- (("fn test_process_mask")
- "#[ignore]\nfn test_process_mask")
- (("fn test_process_group_posix_spawn")
- "#[ignore]\nfn test_process_group_posix_spawn")
- (("fn test_process_group_no_posix_spawn")
- "#[ignore]\nfn test_process_group_no_posix_spawn")))))
+ (("target_arch = \"arm\",") "target_os = \"linux\",")))))
(add-after 'unpack 'disable-interrupt-tests
(lambda _
;; This test hangs in the build container; disable it.
- 218/475: gnu: rust-wasm-bindgen-macro-support-0.2: Update to 0.2.84., (continued)
- 218/475: gnu: rust-wasm-bindgen-macro-support-0.2: Update to 0.2.84., guix-commits, 2023/05/07
- 215/475: gnu: rust-wasm-bindgen-backend-0.2: Update to 0.2.84., guix-commits, 2023/05/07
- 223/475: gnu: rust-weezl-0.1: Update to 0.1.7., guix-commits, 2023/05/07
- 227/475: gnu: Add rust-maybe-rayon-0.1., guix-commits, 2023/05/07
- 229/475: gnu: Add rust-lebe-0.5., guix-commits, 2023/05/07
- 233/475: gnu: Remove rust-cargon-0.0., guix-commits, 2023/05/07
- 235/475: gnu: Add rust-bindgen-0.61., guix-commits, 2023/05/07
- 237/475: gnu: Remove rust-askama-derive-0.10., guix-commits, 2023/05/07
- 238/475: gnu: Remove rust-pangocairo-sys-0.10., guix-commits, 2023/05/07
- 243/475: gnu: Add rust-exr-1., guix-commits, 2023/05/07
- 247/475: gnu: rust: Fix test suite on some architectures.,
guix-commits <=
- 251/475: gnu: rust-ctrlc-3: Update to 3.2.5., guix-commits, 2023/05/07
- 252/475: gnu: rust-insta-1: Update to 1.28.0., guix-commits, 2023/05/07
- 256/475: gnu: Add rust-lscolors-0.13., guix-commits, 2023/05/07
- 263/475: gnu: Add rust-test-case-macros-2., guix-commits, 2023/05/07
- 268/475: gnu: Add rust-argmax-0.3., guix-commits, 2023/05/07
- 267/475: gnu: Add rust-faccess-0.2., guix-commits, 2023/05/07
- 264/475: gnu: Add rust-option-set-0.1., guix-commits, 2023/05/07
- 270/475: gnu: rust-similar-asserts-1: Update to 1.4.2., guix-commits, 2023/05/07
- 275/475: gnu: rust-gif-0.11: Remove duplicate definition., guix-commits, 2023/05/07
- 281/475: gnu: rust-derive-arbitrary-1: Update to 1.2.3., guix-commits, 2023/05/07