git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #39000 from Mic92/rustc-disable-aarch64-tests

rustc: disable tests for aarch64

commit74ed06efa040a12413c8aa72e89627caa6c48d33 authorJörg Thalheim <Mic92@users.noreply.github.com> dateMon 16 Apr 2018, 14:14 (9 years ago) parent63a865cdee60d8
3 files changed+6−18
pkgs/development/compilers/rust/default.nix+6−3 pkgs/development/compilers/rust/patches/aarch64-disable-test_loading_cosine.patch−12 pkgs/development/compilers/rust/rustc.nix−3
pkgs/development/compilers/rust/default.nix+6−3
@@ -20,11 +20,14 @@ in rec {
2020
2121 configureFlags = [ "--release-channel=stable" ];
2222
23+ # Upstream is not running tests on aarch64:
24+ # see https://github.com/rust-lang/rust/issues/49807#issuecomment-380860567
25+ # So we do the same.
26+ doCheck = !stdenv.isAarch64;
27+
2328 patches = [
2429 ./patches/0001-Disable-fragile-tests-libstd-net-tcp-on-Darwin-Linux.patch
25− ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch
26− # https://github.com/rust-lang/rust/issues/45410
27− ++ stdenv.lib.optional stdenv.isAarch64 ./patches/aarch64-disable-test_loading_cosine.patch;
30+ ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
2831
2932 };
3033
pkgs/development/compilers/rust/patches/aarch64-disable-test_loading_cosine.patchdeleted−12
@@ -1,12 +0,0 @@
1−diff --git a/src/librustc_metadata/dynamic_lib.rs b/src/librustc_metadata/dynamic_lib.rs
2−index 1b42fa0..92256dc 100644
3−--- a/src/librustc_metadata/dynamic_lib.rs
4−+++ b/src/librustc_metadata/dynamic_lib.rs
5−@@ -80,6 +80,7 @@ mod tests {
6− use std::mem;
7−
8− #[test]
9−+ #[ignore]
10− fn test_loading_cosine() {
11− if cfg!(windows) {
12− return
pkgs/development/compilers/rust/rustc.nix−3
@@ -108,9 +108,6 @@ stdenv.mkDerivation {
108108
109109 # Useful debugging parameter
110110 # export VERBOSE=1
111− '' + optionalString stdenv.isAarch64 ''
112− # https://github.com/rust-lang/rust/issues/49807
113− rm -vr src/test/debuginfo/by-value-self-argument-in-trait-impl.rs
114111 '' + optionalString stdenv.isDarwin ''
115112 # Disable all lldb tests.
116113 # error: Can't run LLDB test because LLDB's python path is not set