nixpkgs/nixos/tests/kernel-testing.nix

18 lines
440 B
Nix
Raw Normal View History

2019-11-27 08:02:58 +00:00
import ./make-test-python.nix ({ pkgs, ...} : {
2019-04-01 14:04:54 +00:00
name = "kernel-testing";
2019-04-01 12:31:36 +00:00
meta = with pkgs.stdenv.lib.maintainers; {
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 12:31:36 +00:00
'';
})