nixpkgs/nixos/tests/kernel-testing.nix

18 lines
433 B
Nix
Raw Normal View History

2019-11-27 08:02:58 +00:00
import ./make-test-python.nix ({ pkgs, ...} : {
2019-04-01 15:04:54 +01:00
name = "kernel-testing";
meta = with pkgs.lib.maintainers; {
2019-04-01 13:31:36 +01:00
maintainers = [ nequissimus ];
};
machine = { pkgs, ... }:
{
boot.kernelPackages = pkgs.linuxPackages_testing;
};
testScript =
''
2019-11-27 08:02:58 +00:00
assert "Linux" in machine.succeed("uname -s")
assert "${pkgs.linuxPackages_testing.kernel.modDirVersion}" in machine.succeed("uname -a")
2019-04-01 13:31:36 +01:00
'';
})