2020-08-09 16:20:17 +03:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "shattered-pixel-dungeon";
|
|
|
|
meta = with pkgs.lib.maintainers; {
|
|
|
|
maintainers = [ fgaz ];
|
|
|
|
};
|
|
|
|
|
2022-03-21 02:15:30 +03:00
|
|
|
nodes.machine = { config, pkgs, ... }: {
|
2020-08-09 16:20:17 +03:00
|
|
|
imports = [
|
|
|
|
./common/x11.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
services.xserver.enable = true;
|
2021-08-17 23:40:48 +03:00
|
|
|
sound.enable = true;
|
2020-08-09 16:20:17 +03:00
|
|
|
environment.systemPackages = [ pkgs.shattered-pixel-dungeon ];
|
|
|
|
};
|
|
|
|
|
|
|
|
enableOCR = true;
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
machine.wait_for_x()
|
2021-11-05 03:43:22 +03:00
|
|
|
machine.execute("shattered-pixel-dungeon >&2 &")
|
2020-08-09 16:20:17 +03:00
|
|
|
machine.wait_for_window(r"Shattered Pixel Dungeon")
|
2023-10-28 20:59:01 +03:00
|
|
|
machine.wait_for_text("Enter")
|
2020-08-09 16:20:17 +03:00
|
|
|
machine.screenshot("screen")
|
|
|
|
'';
|
|
|
|
})
|
|
|
|
|