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