[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
258/459: gnu: rust: Fix test suite on some architectures.
From: |
guix-commits |
Subject: |
258/459: gnu: rust: Fix test suite on some architectures. |
Date: |
Mon, 24 Apr 2023 15:03:11 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 8858877353eb9cfa4b9bf8facd61219e6c878c97
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 2f3df125c8..b0fb49ae46 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -766,13 +766,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.
- 230/459: gnu: Add rust-serde-big-array-0.4., (continued)
- 230/459: gnu: Add rust-serde-big-array-0.4., guix-commits, 2023/04/24
- 231/459: gnu: Add rust-maybe-rayon-0.1., guix-commits, 2023/04/24
- 234/459: gnu: Remove rust-crunchy-0.1., guix-commits, 2023/04/24
- 238/459: gnu: Add rust-built-0.5., guix-commits, 2023/04/24
- 240/459: gnu: Add rust-av1-grain-0.2., guix-commits, 2023/04/24
- 239/459: gnu: Add rust-bindgen-0.61., guix-commits, 2023/04/24
- 244/459: gnu: Add rust-mp4parse-0.12., guix-commits, 2023/04/24
- 250/459: gnu: gdk-pixbuf: Update to 2.42.10., guix-commits, 2023/04/24
- 256/459: gnu: gdk-pixbuf: Remove input labels., guix-commits, 2023/04/24
- 257/459: etc: teams: Add sequoia.scm to the rust team., guix-commits, 2023/04/24
- 258/459: gnu: rust: Fix test suite on some architectures.,
guix-commits <=
- 259/459: gnu: rust-console-0.15: Update to 0.15.5., guix-commits, 2023/04/24
- 262/459: gnu: rust-ctrlc-3: Update to 3.2.5., guix-commits, 2023/04/24
- 266/459: gnu: rust-linked-hash-map-0.5: Update to 0.5.6., guix-commits, 2023/04/24
- 268/459: gnu: rust-nix-0.26: Update to 0.26.2., guix-commits, 2023/04/24
- 271/459: gnu: rust-similar-2: Update to 2.2.1., guix-commits, 2023/04/24
- 274/459: gnu: Add rust-test-case-macros-2., guix-commits, 2023/04/24
- 275/459: gnu: Add rust-option-set-0.1., guix-commits, 2023/04/24
- 279/459: gnu: Add rust-argmax-0.3., guix-commits, 2023/04/24
- 280/459: gnu: rust-signal-hook-0.3: Update to 0.3.15., guix-commits, 2023/04/24
- 286/459: gnu: rust-gif-0.11: Remove duplicate definition., guix-commits, 2023/04/24