2021-04-08 16:26:57 +00:00
|
|
|
{ system ? builtins.currentSystem
|
|
|
|
, config ? { }
|
|
|
|
, pkgs ? import ../.. { inherit system config; }
|
2021-04-13 19:44:15 +00:00
|
|
|
}@args:
|
2021-04-08 16:26:57 +00:00
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
let
|
2021-08-25 08:27:29 +00:00
|
|
|
testsForLinuxPackages = linuxPackages: (import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "kernel-${linuxPackages.kernel.version}";
|
2021-04-08 16:26:57 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = [ nequissimus atemu ma27 ];
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nodes.machine = { ... }:
|
2021-04-08 16:26:57 +00:00
|
|
|
{
|
|
|
|
boot.kernelPackages = linuxPackages;
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
assert "Linux" in machine.succeed("uname -s")
|
|
|
|
assert "${linuxPackages.kernel.modDirVersion}" in machine.succeed("uname -a")
|
|
|
|
'';
|
2021-04-13 19:44:15 +00:00
|
|
|
}) args);
|
2024-02-07 01:22:34 +00:00
|
|
|
kernels = (removeAttrs pkgs.linuxKernel.vanillaPackages ["__attrsFailEvaluation"]) // {
|
2021-12-06 16:07:01 +00:00
|
|
|
inherit (pkgs.linuxKernel.packages)
|
|
|
|
linux_4_19_hardened
|
|
|
|
linux_5_4_hardened
|
|
|
|
linux_5_10_hardened
|
|
|
|
linux_5_15_hardened
|
2023-01-20 10:41:00 +00:00
|
|
|
linux_6_1_hardened
|
2024-01-02 11:29:13 +00:00
|
|
|
linux_6_6_hardened
|
2024-06-05 15:53:02 +00:00
|
|
|
linux_6_8_hardened
|
|
|
|
linux_6_9_hardened
|
2023-08-04 22:07:22 +00:00
|
|
|
linux_rt_5_4
|
|
|
|
linux_rt_5_10
|
|
|
|
linux_rt_5_15
|
|
|
|
linux_rt_6_1
|
2024-06-05 15:53:02 +00:00
|
|
|
linux_rt_6_6
|
2023-08-04 22:07:22 +00:00
|
|
|
linux_libre
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
linux_testing;
|
2021-08-25 08:27:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in mapAttrs (_: lP: testsForLinuxPackages lP) kernels // {
|
2023-08-10 07:59:29 +00:00
|
|
|
passthru = {
|
|
|
|
inherit testsForLinuxPackages;
|
2021-08-25 08:27:29 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
testsForKernel = kernel: testsForLinuxPackages (pkgs.linuxPackagesFor kernel);
|
|
|
|
};
|
2021-04-08 16:26:57 +00:00
|
|
|
}
|