1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/nixos/tests/ft2-clone.nix

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

34 lines
759 B
Nix
Raw Normal View History

2020-07-29 18:40:38 +01:00
import ./make-test-python.nix ({ pkgs, ... }: {
name = "ft2-clone";
meta = with pkgs.lib.maintainers; {
maintainers = [ fgaz ];
};
2022-03-20 23:15:30 +00:00
nodes.machine = { config, pkgs, ... }: {
2020-07-29 18:40:38 +01:00
imports = [
./common/x11.nix
];
services.xserver.enable = true;
sound.enable = true;
environment.systemPackages = [ pkgs.ft2-clone ];
};
enableOCR = true;
testScript =
''
machine.wait_for_x()
# Add a dummy sound card, or the program won't start
machine.execute("modprobe snd-dummy")
machine.execute("ft2-clone >&2 &")
2020-07-29 18:40:38 +01:00
machine.wait_for_window(r"Fasttracker")
machine.sleep(5)
machine.wait_for_text(r"(Songlen|Repstart|Time|About|Nibbles|Help)")
2020-07-29 18:40:38 +01:00
machine.screenshot("screen")
'';
})