nixpkgs/nixos/tests/kernel-copperhead.nix

20 lines
565 B
Nix
Raw Normal View History

2017-09-04 19:56:30 +02:00
import ./make-test.nix ({ pkgs, ...} : {
name = "kernel-copperhead";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ nequissimus ];
};
machine = { config, lib, pkgs, ... }:
{
2018-04-13 15:01:53 +02:00
boot.kernelPackages = pkgs.linuxPackages_copperhead_hardened;
2017-09-04 19:56:30 +02:00
};
testScript =
''
$machine->succeed("uname -a");
$machine->succeed("uname -s | grep 'Linux'");
2018-04-13 15:01:53 +02:00
$machine->succeed("uname -a | grep '${pkgs.linuxPackages_copperhead_hardened.kernel.modDirVersion}'");
2017-09-04 19:56:30 +02:00
$machine->succeed("uname -a | grep 'hardened'");
'';
})