at master 842 B view raw
1{ 2 lib, 3 ... 4}: 5{ 6 name = "lemurs"; 7 meta = with lib.maintainers; { 8 maintainers = [ 9 nullcube 10 stunkymonkey 11 ]; 12 }; 13 14 enableOCR = true; 15 16 nodes.machine = _: { 17 imports = [ ../common/user-account.nix ]; 18 services.displayManager.lemurs.enable = true; 19 }; 20 21 testScript = '' 22 machine.start() 23 24 machine.wait_for_unit("multi-user.target") 25 machine.wait_for_text("Login") 26 machine.screenshot("postboot") 27 28 with subtest("Log in as alice on a virtual console"): 29 machine.send_chars("\n") 30 machine.send_chars("alice\n") 31 machine.sleep(1) 32 machine.send_chars("foobar\n") 33 machine.sleep(1) 34 machine.wait_until_succeeds("pgrep -u alice bash") 35 machine.screenshot("postlogin") 36 machine.send_chars("touch done\n") 37 machine.wait_for_file("/home/alice/done") 38 ''; 39}