2013-09-16 08:15:42 -07:00
|
|
|
# Test whether fast reboots via kexec work.
|
|
|
|
|
2014-04-14 05:02:44 -07:00
|
|
|
import ./make-test.nix {
|
2014-06-28 07:04:49 -07:00
|
|
|
name = "kexec";
|
2013-09-16 08:15:42 -07:00
|
|
|
|
|
|
|
machine = { config, pkgs, ... }:
|
|
|
|
{ virtualisation.vlans = [ ]; };
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
$machine->waitForUnit("multi-user.target");
|
|
|
|
$machine->execute("systemctl kexec &");
|
|
|
|
$machine->{connected} = 0;
|
|
|
|
$machine->waitForUnit("multi-user.target");
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|