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