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