2021-04-07 16:57:58 +01:00
|
|
|
{ system ? builtins.currentSystem
|
|
|
|
, config ? { }
|
|
|
|
, pkgs ? import ../.. { inherit system config; }
|
2021-04-13 10:07:39 +01:00
|
|
|
}@args:
|
2021-04-07 16:57:58 +01:00
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
makeKernelTest = version: linuxPackages: (import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "kernel-${version}";
|
|
|
|
meta = with pkgs.lib.maintainers; {
|
|
|
|
maintainers = [ nequissimus ];
|
|
|
|
};
|
|
|
|
|
|
|
|
machine = { ... }:
|
|
|
|
{
|
|
|
|
boot.kernelPackages = linuxPackages;
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
assert "Linux" in machine.succeed("uname -s")
|
2021-04-07 17:28:15 +01:00
|
|
|
assert "${linuxPackages.kernel.modDirVersion}" in machine.succeed("uname -a")
|
2021-04-07 16:57:58 +01:00
|
|
|
'';
|
2021-04-13 10:07:39 +01:00
|
|
|
}) args);
|
2021-04-07 16:57:58 +01:00
|
|
|
in
|
|
|
|
with pkgs; {
|
2021-04-07 17:18:34 +01:00
|
|
|
linux_4_4 = makeKernelTest "4.4" linuxPackages_4_4;
|
2021-04-07 17:16:28 +01:00
|
|
|
linux_4_9 = makeKernelTest "4.9" linuxPackages_4_9;
|
2021-04-07 17:14:04 +01:00
|
|
|
linux_4_14 = makeKernelTest "4.14" linuxPackages_4_14;
|
2021-04-07 17:11:32 +01:00
|
|
|
linux_4_19 = makeKernelTest "4.19" linuxPackages_4_19;
|
2021-04-07 17:08:57 +01:00
|
|
|
linux_5_4 = makeKernelTest "5.4" linuxPackages_5_4;
|
2021-04-07 17:06:41 +01:00
|
|
|
linux_5_10 = makeKernelTest "5.10" linuxPackages_5_10;
|
2021-06-28 23:40:41 +01:00
|
|
|
linux_5_13 = makeKernelTest "5.13" linuxPackages_5_13;
|
2021-04-07 17:28:15 +01:00
|
|
|
|
|
|
|
linux_testing = makeKernelTest "testing" linuxPackages_testing;
|
2021-04-07 16:57:58 +01:00
|
|
|
}
|