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 ma27 ];
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)
43 in mapAttrs (_: lP: testsForLinuxPackages lP) kernels // {
45 inherit testsForLinuxPackages;
47 # Useful for development testing of all Kernel configs without building full Kernel
48 configfiles = mapAttrs (_: lP: lP.kernel.configfile) kernels;
50 testsForKernel = kernel: testsForLinuxPackages (pkgs.linuxPackagesFor kernel);