diff options
author | Tim Steinbach <tim@nequissimus.com> | 2017-09-04 13:56:30 -0400 |
---|---|---|
committer | Tim Steinbach <tim@nequissimus.com> | 2017-09-05 10:38:07 -0400 |
commit | 656ec9de0e7fae5d5ec734f29ea29c88ea8d3df4 (patch) | |
tree | 6bc64cd3fc18f0f112fc07620a6ebb9511dddd35 /nixos/tests/kernel-latest.nix | |
parent | da3640ec56d2466144844ff14d07c81ebcb15349 (diff) |
Add basic kernel tests
Diffstat (limited to 'nixos/tests/kernel-latest.nix')
-rw-r--r-- | nixos/tests/kernel-latest.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nixos/tests/kernel-latest.nix b/nixos/tests/kernel-latest.nix new file mode 100644 index 0000000000000..1350426654d70 --- /dev/null +++ b/nixos/tests/kernel-latest.nix @@ -0,0 +1,17 @@ +import ./make-test.nix ({ pkgs, ...} : { + name = "kernel-latest"; + meta = with pkgs.stdenv.lib.maintainers; { + maintainers = [ nequissimus ]; + }; + + machine = { config, lib, pkgs, ... }: + { + boot.kernelPackages = pkgs.linuxPackages_latest; + }; + + testScript = + '' + $machine->succeed("uname -s | grep 'Linux'"); + $machine->succeed("uname -a | grep '${pkgs.linuxPackages_latest.kernel.version}'"); + ''; +}) |