1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/nixos/tests/shattered-pixel-dungeon.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
675 B
Nix
Raw Permalink Normal View History

import ./make-test-python.nix (
{ pkgs, ... }:
{
name = "shattered-pixel-dungeon";
meta = with pkgs.lib.maintainers; {
maintainers = [ fgaz ];
};
2022-03-20 23:15:30 +00:00
nodes.machine =
{ config, pkgs, ... }:
{
imports = [
./common/x11.nix
];
services.xserver.enable = true;
environment.systemPackages = [ pkgs.shattered-pixel-dungeon ];
};
enableOCR = true;
testScript = ''
machine.wait_for_x()
machine.execute("shattered-pixel-dungeon >&2 &")
machine.wait_for_window(r"Shattered Pixel Dungeon")
machine.wait_for_text("Enter")
machine.screenshot("screen")
'';
}
)