nixpkgs/nixos/tests/kernel-testing.nix

18 lines
433 B
Nix
Raw Normal View History

2019-04-01 14:31:36 +02:00
import ./make-test.nix ({ pkgs, ...} : {
2019-04-01 16:04:54 +02:00
name = "kernel-testing";
2019-04-01 14:31:36 +02: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 16:04:54 +02:00
$machine->succeed("uname -a | grep '${pkgs.linuxPackages_testing.kernel.modDirVersion}'");
2019-04-01 14:31:36 +02:00
'';
})