2020-10-16 20:44:37 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "ft2-clone";
|
|
|
|
meta = with pkgs.lib.maintainers; {
|
|
|
|
maintainers = [ fgaz ];
|
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nodes.machine = { pkgs, ... }: {
|
2020-10-16 20:44:37 +00:00
|
|
|
imports = [
|
|
|
|
./common/x11.nix
|
|
|
|
];
|
|
|
|
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")
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
machine.execute("ft2-clone >&2 &")
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
machine.wait_for_window(r"Fasttracker")
|
|
|
|
machine.sleep(5)
|
2023-04-29 16:46:19 +00:00
|
|
|
machine.wait_for_text(r"(Songlen|Repstart|Time|About|Nibbles|Help)")
|
2020-10-16 20:44:37 +00:00
|
|
|
machine.screenshot("screen")
|
|
|
|
'';
|
|
|
|
})
|