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