mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
nixosTests.kernel-rust.linux_testing: init for aarch64
Older kernels do not support Rust on aarch64, so we have to move the platform check from all-tests.nix into the test itself.
This commit is contained in:
parent
5c96956e4b
commit
e7de14ea98
@ -457,7 +457,7 @@ in {
|
||||
kerberos = handleTest ./kerberos/default.nix {};
|
||||
kernel-generic = handleTest ./kernel-generic.nix {};
|
||||
kernel-latest-ath-user-regd = handleTest ./kernel-latest-ath-user-regd.nix {};
|
||||
kernel-rust = handleTestOn ["x86_64-linux"] ./kernel-rust.nix {};
|
||||
kernel-rust = handleTest ./kernel-rust.nix {};
|
||||
keter = handleTest ./keter.nix {};
|
||||
kexec = handleTest ./kexec.nix {};
|
||||
keycloak = discoverTests (import ./keycloak.nix);
|
||||
|
@ -4,7 +4,7 @@
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (pkgs.lib) const filterAttrs mapAttrs;
|
||||
inherit (pkgs.lib) const filterAttrs mapAttrs meta;
|
||||
|
||||
kernelRustTest = kernelPackages: import ./make-test-python.nix ({ lib, ... }: {
|
||||
name = "kernel-rust";
|
||||
@ -38,6 +38,8 @@ let
|
||||
inherit (builtins.tryEval (
|
||||
x.rust-out-of-tree-module or null != null
|
||||
)) success value;
|
||||
in success && value))
|
||||
available =
|
||||
meta.availableOn pkgs.stdenv.hostPlatform x.rust-out-of-tree-module;
|
||||
in success && value && available))
|
||||
pkgs.linuxKernel.vanillaPackages;
|
||||
in mapAttrs (const kernelRustTest) kernels
|
||||
|
Loading…
Reference in New Issue
Block a user