1 import ./make-test-python.nix ({ pkgs, ... }: {
2 name = "shattered-pixel-dungeon";
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ fgaz ];
7 nodes.machine = { config, pkgs, ... }: {
12 services.xserver.enable = true;
14 environment.systemPackages = [ pkgs.shattered-pixel-dungeon ];
22 machine.execute("shattered-pixel-dungeon >&2 &")
23 machine.wait_for_window(r"Shattered Pixel Dungeon")
25 if "Enter" not in machine.get_screen_text():
26 raise Exception("Program did not start successfully")
27 machine.screenshot("screen")