at 25.11-pre 455 B view raw
1{ 2 name = "xautolock"; 3 meta.maintainers = [ ]; 4 5 nodes.machine = { 6 imports = [ 7 ./common/x11.nix 8 ./common/user-account.nix 9 ]; 10 11 test-support.displayManager.auto.user = "bob"; 12 services.xserver.xautolock.enable = true; 13 services.xserver.xautolock.time = 1; 14 }; 15 16 testScript = '' 17 machine.start() 18 machine.wait_for_x() 19 machine.fail("pgrep xlock") 20 machine.sleep(120) 21 machine.succeed("pgrep xlock") 22 ''; 23}