94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
22 lines
492 B
Nix
22 lines
492 B
Nix
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 = ''
|
|
machine.start()
|
|
machine.wait_for_x()
|
|
machine.fail("pgrep xlock")
|
|
machine.sleep(120)
|
|
machine.succeed("pgrep xlock")
|
|
'';
|
|
})
|