mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
c4cf844566
- Remove unused `config` argument - Don't enable the xserver again, since the import `./common/x11.nix` already takes care of that - Remove an empty line at the end
32 lines
714 B
Nix
32 lines
714 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "ft2-clone";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ fgaz ];
|
|
};
|
|
|
|
nodes.machine = { pkgs, ... }: {
|
|
imports = [
|
|
./common/x11.nix
|
|
];
|
|
|
|
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 &")
|
|
|
|
machine.wait_for_window(r"Fasttracker")
|
|
machine.sleep(5)
|
|
machine.wait_for_text(r"(Songlen|Repstart|Time|About|Nibbles|Help)")
|
|
machine.screenshot("screen")
|
|
'';
|
|
})
|