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; {
|
2021-08-25 08:27:29 +00:00
|
|
|
maintainers = [ nequissimus atemu ];
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
machine = { ... }:
|
|
|
|
{
|
|
|
|
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);
|
2021-08-25 08:27:29 +00:00
|
|
|
kernels = {
|
|
|
|
inherit (pkgs)
|
|
|
|
linuxPackages_4_4
|
|
|
|
linuxPackages_4_9
|
|
|
|
linuxPackages_4_14
|
|
|
|
linuxPackages_4_19
|
|
|
|
linuxPackages_5_4
|
|
|
|
linuxPackages_5_10
|
|
|
|
linuxPackages_5_13
|
2021-09-18 10:52:07 +00:00
|
|
|
linuxPackages_5_14
|
2021-08-25 08:27:29 +00:00
|
|
|
|
|
|
|
linuxPackages_4_14_hardened
|
|
|
|
linuxPackages_4_19_hardened
|
|
|
|
linuxPackages_5_4_hardened
|
|
|
|
linuxPackages_5_10_hardened
|
|
|
|
|
|
|
|
linuxPackages_testing;
|
|
|
|
};
|
|
|
|
|
|
|
|
in mapAttrs (_: lP: testsForLinuxPackages lP) kernels // {
|
|
|
|
inherit testsForLinuxPackages;
|
|
|
|
|
|
|
|
testsForKernel = kernel: testsForLinuxPackages (pkgs.linuxPackagesFor kernel);
|
2021-04-08 16:26:57 +00:00
|
|
|
}
|