1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00
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 15:04:54 +01:00
name = "kernel-testing";
2019-04-01 13:31:36 +01: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 13:31:36 +01:00
'';
})