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;
14 environment.systemPackages = [ pkgs.pt2-clone ];
22 # Add a dummy sound card, or the program won't start
23 machine.execute("modprobe snd-dummy")
25 machine.execute("pt2-clone >&2 &")
27 machine.wait_for_window(r"ProTracker")
29 # One of the few words that actually get recognized
30 if "LENGTH" not in machine.get_screen_text():
31 raise Exception("Program did not start successfully")
32 machine.screenshot("screen")