blob: de48f93e1ed51e83e9d10c895f91669dcfbdb69d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ pkgs, ... }:
{
name = "pt2-clone";
meta = with pkgs.lib.maintainers; {
maintainers = [ fgaz ];
};
nodes.machine =
{ config, pkgs, ... }:
{
imports = [
./common/x11.nix
];
boot.kernelModules = [ "snd-dummy" ];
services.pulseaudio = {
enable = true;
systemWide = true;
};
services.pipewire.enable = false;
environment.systemPackages = [ pkgs.pt2-clone ];
};
enableOCR = true;
testScript = ''
machine.wait_for_x()
machine.execute("pt2-clone >&2 &")
machine.wait_for_window(r"ProTracker")
machine.sleep(5)
# One of the few words that actually get recognized
machine.wait_for_text("LENGTH")
machine.screenshot("screen")
'';
}
|