1 { system ? builtins.currentSystem
3 , pkgs ? import ../.. { inherit system config; }
9 testsForLinuxPackages = linuxPackages: (import ./make-test-python.nix ({ pkgs, ... }: {
10 name = "kernel-${linuxPackages.kernel.version}";
11 meta = with pkgs.lib.maintainers; {
12 maintainers = [ nequissimus atemu ];
15 nodes.machine = { ... }:
17 boot.kernelPackages = linuxPackages;
22 assert "Linux" in machine.succeed("uname -s")
23 assert "${linuxPackages.kernel.modDirVersion}" in machine.succeed("uname -a")
26 kernels = pkgs.linuxKernel.vanillaPackages // {
27 inherit (pkgs.linuxKernel.packages)
38 in mapAttrs (_: lP: testsForLinuxPackages lP) kernels // {
39 inherit testsForLinuxPackages;
41 testsForKernel = kernel: testsForLinuxPackages (pkgs.linuxPackagesFor kernel);