1 import ./make-test-python.nix ({ pkgs, latestKernel ? false, ... }:
3 name = "greetd-no-shadow";
4 meta = with pkgs.lib.maintainers; {
16 users.groups.alice = {};
18 # This means login(1) breaks, so we must use greetd/agreety instead.
19 security.shadow.enable = false;
25 command = "${pkgs.greetd.greetd}/bin/agreety --cmd bash";
34 machine.wait_for_unit("multi-user.target")
35 machine.wait_until_succeeds("pgrep -f 'agretty.*tty1'")
36 machine.screenshot("postboot")
38 with subtest("Log in as alice on a virtual console"):
39 machine.wait_until_tty_matches("1", "login: ")
40 machine.send_chars("alice\n")
41 machine.wait_until_tty_matches("1", "login: alice")
42 machine.wait_until_succeeds("pgrep login")
43 machine.wait_until_tty_matches("1", "Password: ")
44 machine.send_chars("foobar\n")
45 machine.wait_until_succeeds("pgrep -u alice bash")
46 machine.send_chars("touch done\n")
47 machine.wait_for_file("/home/alice/done")