[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
247/470: gnu: rust: Fix test suite on some architectures.
From: |
guix-commits |
Subject: |
247/470: gnu: rust: Fix test suite on some architectures. |
Date: |
Sun, 30 Apr 2023 14:04:22 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit c5e77a53296b8214648db55bb46398b0d35a24a7
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.
- 397/470: gnu: Add rust-smithay-client-toolkit-0.16., (continued)
- 397/470: gnu: Add rust-smithay-client-toolkit-0.16., guix-commits, 2023/04/30
- 423/470: gnu: Add rust-anstyle-0.2., guix-commits, 2023/04/30
- 435/470: gnu: Add rust-toml-0.7., guix-commits, 2023/04/30
- 440/470: gnu: Add rust-ttf-parser-0.19., guix-commits, 2023/04/30
- 452/470: gnu: rust-rustls-0.18: Skip tests., guix-commits, 2023/04/30
- 454/470: gnu: rust-rustls-ffi-0.8: Add missing input., guix-commits, 2023/04/30
- 448/470: gnu: Add rust-strict-num-0.1., guix-commits, 2023/04/30
- 455/470: gnu: rust-selectors-0.21: Fix cargo inputs., guix-commits, 2023/04/30
- 464/470: gnu: rust-sct-0.5: Fix build., guix-commits, 2023/04/30
- 468/470: gnu: rust-hashbrown-0.8: Update to 0.8.2., guix-commits, 2023/04/30
- 247/470: gnu: rust: Fix test suite on some architectures.,
guix-commits <=
- 261/470: gnu: Add rust-test-case-2., guix-commits, 2023/04/30
- 262/470: gnu: fd: Update to 8.7.0., guix-commits, 2023/04/30
- 295/470: gnu: rust-tikv-jemalloc-sys-0.4: Remove bundled sources., guix-commits, 2023/04/30
- 286/470: gnu: rust-ring-0.13: Remove pregenerated files., guix-commits, 2023/04/30
- 300/470: gnu: Add rust-indexmap-1.6., guix-commits, 2023/04/30
- 306/470: gnu: Add rust-1.68., guix-commits, 2023/04/30
- 311/470: gnu: Add rust-associative-cache-1., guix-commits, 2023/04/30
- 316/470: gnu: Add rust-markup-0.13., guix-commits, 2023/04/30
- 327/470: gnu: rust-windows-x86-64-gnu-0.42: Update to 0.42.2., guix-commits, 2023/04/30
- 326/470: gnu: rust-windows-x86-64-gnullvm-0.42: Update to 0.42.2., guix-commits, 2023/04/30