nixpkgs/nixos/tests/xautolock.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
492 B
Nix
Raw Normal View History

2019-11-06 11:30:29 +00:00
import ./make-test-python.nix ({ pkgs, lib, ... }:
{
name = "xautolock";
meta.maintainers = [ ];
nodes.machine = {
imports = [ ./common/x11.nix ./common/user-account.nix ];
test-support.displayManager.auto.user = "bob";
services.xserver.xautolock.enable = true;
services.xserver.xautolock.time = 1;
};
testScript = ''
2019-11-06 11:30:29 +00:00
machine.start()
machine.wait_for_x()
machine.fail("pgrep xlock")
machine.sleep(120)
machine.succeed("pgrep xlock")
'';
})