ae3682cb17
It's still in kernels-org.json, because even if I remove it the update script will keep putting it back, but nothing references it, and it'll be removed from that file when kernels are next updated after it's been delisted from kernel.org. linux_testing_bcachefs still needs to be updated for >6.4, so for now I've just inlined the Linux 6.4 definition in linux_testing_bcachefs's definition.
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ system ? builtins.currentSystem
|
|
, config ? { }
|
|
, pkgs ? import ../.. { inherit system config; }
|
|
}@args:
|
|
|
|
with pkgs.lib;
|
|
|
|
let
|
|
testsForLinuxPackages = linuxPackages: (import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "kernel-${linuxPackages.kernel.version}";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ nequissimus atemu ma27 ];
|
|
};
|
|
|
|
nodes.machine = { ... }:
|
|
{
|
|
boot.kernelPackages = linuxPackages;
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
assert "Linux" in machine.succeed("uname -s")
|
|
assert "${linuxPackages.kernel.modDirVersion}" in machine.succeed("uname -a")
|
|
'';
|
|
}) args);
|
|
kernels = pkgs.linuxKernel.vanillaPackages // {
|
|
inherit (pkgs.linuxKernel.packages)
|
|
linux_4_14_hardened
|
|
linux_4_19_hardened
|
|
linux_5_4_hardened
|
|
linux_5_10_hardened
|
|
linux_5_15_hardened
|
|
linux_6_1_hardened
|
|
linux_6_5_hardened
|
|
linux_rt_5_4
|
|
linux_rt_5_10
|
|
linux_rt_5_15
|
|
linux_rt_6_1
|
|
linux_libre
|
|
|
|
linux_testing;
|
|
};
|
|
|
|
in mapAttrs (_: lP: testsForLinuxPackages lP) kernels // {
|
|
passthru = {
|
|
inherit testsForLinuxPackages;
|
|
|
|
testsForKernel = kernel: testsForLinuxPackages (pkgs.linuxPackagesFor kernel);
|
|
};
|
|
}
|