nixpkgs/nixos/tests/kernel-testing.nix

18 lines
433 B
Nix
Raw Normal View History

2019-04-01 15:31:36 +03:00
import ./make-test.nix ({ pkgs, ...} : {
2019-04-01 17:04:54 +03:00
name = "kernel-testing";
2019-04-01 15:31:36 +03:00
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ nequissimus ];
};
machine = { pkgs, ... }:
{
boot.kernelPackages = pkgs.linuxPackages_testing;
};
testScript =
''
$machine->succeed("uname -s | grep 'Linux'");
2019-04-01 17:04:54 +03:00
$machine->succeed("uname -a | grep '${pkgs.linuxPackages_testing.kernel.modDirVersion}'");
2019-04-01 15:31:36 +03:00
'';
})