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