@@ -1286,7 +1286,7 @@ in {
|
|||||||
writefreely = handleTest ./web-apps/writefreely.nix {};
|
writefreely = handleTest ./web-apps/writefreely.nix {};
|
||||||
wstunnel = runTest ./wstunnel.nix;
|
wstunnel = runTest ./wstunnel.nix;
|
||||||
xandikos = handleTest ./xandikos.nix {};
|
xandikos = handleTest ./xandikos.nix {};
|
||||||
xautolock = handleTest ./xautolock.nix {};
|
xautolock = runTest ./xautolock.nix;
|
||||||
xfce = runTest ./xfce.nix;
|
xfce = runTest ./xfce.nix;
|
||||||
xfce-wayland = runTest ./xfce-wayland.nix;
|
xfce-wayland = runTest ./xfce-wayland.nix;
|
||||||
xmonad = runTest ./xmonad.nix;
|
xmonad = runTest ./xmonad.nix;
|
||||||
|
|||||||
@@ -1,27 +1,23 @@
|
|||||||
import ./make-test-python.nix (
|
{
|
||||||
{ pkgs, lib, ... }:
|
name = "xautolock";
|
||||||
|
meta.maintainers = [ ];
|
||||||
|
|
||||||
{
|
nodes.machine = {
|
||||||
name = "xautolock";
|
imports = [
|
||||||
meta.maintainers = [ ];
|
./common/x11.nix
|
||||||
|
./common/user-account.nix
|
||||||
|
];
|
||||||
|
|
||||||
nodes.machine = {
|
test-support.displayManager.auto.user = "bob";
|
||||||
imports = [
|
services.xserver.xautolock.enable = true;
|
||||||
./common/x11.nix
|
services.xserver.xautolock.time = 1;
|
||||||
./common/user-account.nix
|
};
|
||||||
];
|
|
||||||
|
|
||||||
test-support.displayManager.auto.user = "bob";
|
testScript = ''
|
||||||
services.xserver.xautolock.enable = true;
|
machine.start()
|
||||||
services.xserver.xautolock.time = 1;
|
machine.wait_for_x()
|
||||||
};
|
machine.fail("pgrep xlock")
|
||||||
|
machine.sleep(120)
|
||||||
testScript = ''
|
machine.succeed("pgrep xlock")
|
||||||
machine.start()
|
'';
|
||||||
machine.wait_for_x()
|
}
|
||||||
machine.fail("pgrep xlock")
|
|
||||||
machine.sleep(120)
|
|
||||||
machine.succeed("pgrep xlock")
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user