2013-09-16 19:15:42 +04:00
|
|
|
# Test whether fast reboots via kexec work.
|
|
|
|
|
2015-07-12 13:09:40 +03:00
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
2014-06-28 18:04:49 +04:00
|
|
|
name = "kexec";
|
2015-07-12 13:09:40 +03:00
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ eelco chaoflow ];
|
|
|
|
};
|
2013-09-16 19:15:42 +04:00
|
|
|
|
|
|
|
machine = { config, pkgs, ... }:
|
|
|
|
{ virtualisation.vlans = [ ]; };
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
$machine->waitForUnit("multi-user.target");
|
|
|
|
$machine->execute("systemctl kexec &");
|
|
|
|
$machine->{connected} = 0;
|
|
|
|
$machine->waitForUnit("multi-user.target");
|
|
|
|
'';
|
2015-07-12 13:09:40 +03:00
|
|
|
})
|