2019-11-06 12:30:29 +01:00
|
|
|
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
2018-03-10 00:08:27 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
name = "xautolock";
|
2023-04-30 03:17:05 +02:00
|
|
|
meta.maintainers = [ ];
|
2018-03-10 00:08:27 +01:00
|
|
|
|
|
|
|
nodes.machine = {
|
|
|
|
imports = [ ./common/x11.nix ./common/user-account.nix ];
|
|
|
|
|
2020-01-26 23:41:19 +01:00
|
|
|
test-support.displayManager.auto.user = "bob";
|
2018-03-10 00:08:27 +01:00
|
|
|
services.xserver.xautolock.enable = true;
|
|
|
|
services.xserver.xautolock.time = 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
2019-11-06 12:30:29 +01:00
|
|
|
machine.start()
|
|
|
|
machine.wait_for_x()
|
|
|
|
machine.fail("pgrep xlock")
|
|
|
|
machine.sleep(120)
|
|
|
|
machine.succeed("pgrep xlock")
|
2018-03-10 00:08:27 +01:00
|
|
|
'';
|
|
|
|
})
|