2020-08-20 17:08:02 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "shattered-pixel-dungeon";
|
|
|
|
meta = with pkgs.lib.maintainers; {
|
|
|
|
maintainers = [ fgaz ];
|
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nodes.machine = { config, pkgs, ... }: {
|
2020-08-20 17:08:02 +00:00
|
|
|
imports = [
|
|
|
|
./common/x11.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
services.xserver.enable = true;
|
2021-08-22 07:53:02 +00:00
|
|
|
sound.enable = true;
|
2020-08-20 17:08:02 +00:00
|
|
|
environment.systemPackages = [ pkgs.shattered-pixel-dungeon ];
|
|
|
|
};
|
|
|
|
|
|
|
|
enableOCR = true;
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
machine.wait_for_x()
|
2021-12-06 16:07:01 +00:00
|
|
|
machine.execute("shattered-pixel-dungeon >&2 &")
|
2020-08-20 17:08:02 +00:00
|
|
|
machine.wait_for_window(r"Shattered Pixel Dungeon")
|
2023-11-16 04:20:00 +00:00
|
|
|
machine.wait_for_text("Enter")
|
2020-08-20 17:08:02 +00:00
|
|
|
machine.screenshot("screen")
|
|
|
|
'';
|
|
|
|
})
|
|
|
|
|