mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
10eab5b6b3
The test doesn't evaluate since #125469 because Linux 5.11 got removed as it's EOL. As this fixes the evaluation of the test and it only removes a declaration that was apparently forgotten, I figured that a push to unbreak the test is fine.
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ system ? builtins.currentSystem
|
|
, config ? { }
|
|
, pkgs ? import ../.. { inherit system config; }
|
|
}@args:
|
|
|
|
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")
|
|
assert "${linuxPackages.kernel.modDirVersion}" in machine.succeed("uname -a")
|
|
'';
|
|
}) args);
|
|
in
|
|
with pkgs; {
|
|
linux_4_4 = makeKernelTest "4.4" linuxPackages_4_4;
|
|
linux_4_9 = makeKernelTest "4.9" linuxPackages_4_9;
|
|
linux_4_14 = makeKernelTest "4.14" linuxPackages_4_14;
|
|
linux_4_19 = makeKernelTest "4.19" linuxPackages_4_19;
|
|
linux_5_4 = makeKernelTest "5.4" linuxPackages_5_4;
|
|
linux_5_10 = makeKernelTest "5.10" linuxPackages_5_10;
|
|
linux_5_12 = makeKernelTest "5.12" linuxPackages_5_12;
|
|
|
|
linux_testing = makeKernelTest "testing" linuxPackages_testing;
|
|
}
|