1 import ./make-test-python.nix ({ pkgs, ... }: {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ fgaz ];
7 nodes.machine = { config, pkgs, ... }: {
12 services.xserver.enable = true;
13 environment.systemPackages = [ pkgs.pt2-clone ];
21 # Add a dummy sound card, or the program won't start
22 machine.execute("modprobe snd-dummy")
24 machine.execute("pt2-clone >&2 &")
26 machine.wait_for_window(r"ProTracker")
28 # One of the few words that actually get recognized
29 if "LENGTH" not in machine.get_screen_text():
30 raise Exception("Program did not start successfully")
31 machine.screenshot("screen")