at 18.09-beta 556 B view raw
1import ./make-test.nix ({ pkgs, lib, ... }: 2 3with lib; 4 5{ 6 name = "xautolock"; 7 meta.maintainers = with pkgs.stdenv.lib.maintainers; [ ma27 ]; 8 9 nodes.machine = { 10 imports = [ ./common/x11.nix ./common/user-account.nix ]; 11 12 services.xserver.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->waitForX; 20 $machine->mustFail("pgrep xlock"); 21 $machine->sleep(120); 22 $machine->mustSucceed("pgrep xlock"); 23 ''; 24})