1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00
nixpkgs/nixos/tests/kernel-testing.nix

18 lines
433 B
Nix
Raw Normal View History

2019-04-01 13:31:36 +01:00
import ./make-test.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 =
''
$machine->succeed("uname -s | grep 'Linux'");
2019-04-01 15:04:54 +01:00
$machine->succeed("uname -a | grep '${pkgs.linuxPackages_testing.kernel.modDirVersion}'");
2019-04-01 13:31:36 +01:00
'';
})