nixos/tests: move kernel-params test to misc

This commit is contained in:
Joachim Fasting
2017-09-16 12:45:28 +02:00
parent c85cf60c83
commit ffd56ba4f6
4 changed files with 6 additions and 26 deletions
+6
View File
@@ -26,6 +26,7 @@ import ./make-test.nix ({ pkgs, ...} : {
users.users.sybil = { isNormalUser = true; group = "wheel"; };
security.sudo = { enable = true; wheelNeedsPassword = false; };
boot.kernel.sysctl."vm.swappiness" = 1;
boot.kernelParams = [ "vsyscall=emulate" ];
};
testScript =
@@ -126,5 +127,10 @@ import ./make-test.nix ({ pkgs, ...} : {
$machine->execute('sysctl vm.swappiness=60');
$machine->succeed('[ `sysctl -ne vm.swappiness` = 60 ]');
};
# Test boot parameters
subtest "bootparam", sub {
$machine->succeed('grep -Fq vsyscall=emulate /proc/cmdline');
};
'';
})