blob: e1b4ef40f9831c4eac2bdd0d821ebd77a27fcfc8 (
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
38
39
|
{
lib,
...
}:
{
name = "lemurs";
meta = with lib.maintainers; {
maintainers = [
nullcube
stunkymonkey
];
};
enableOCR = true;
nodes.machine = _: {
imports = [ ../common/user-account.nix ];
services.displayManager.lemurs.enable = true;
};
testScript = ''
machine.start()
machine.wait_for_unit("multi-user.target")
machine.wait_for_text("Login")
machine.screenshot("postboot")
with subtest("Log in as alice on a virtual console"):
machine.send_chars("\n")
machine.send_chars("alice\n")
machine.sleep(1)
machine.send_chars("foobar\n")
machine.sleep(1)
machine.wait_until_succeeds("pgrep -u alice bash")
machine.screenshot("postlogin")
machine.send_chars("touch done\n")
machine.wait_for_file("/home/alice/done")
'';
}
|