diff options
author | Florian Klink <flokli@flokli.de> | 2022-10-07 11:49:52 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2022-10-21 09:37:18 +0200 |
commit | a86e080fa4639a0ea7c9dc6855367f1266311342 (patch) | |
tree | 4bf74f91be6939995503a5fe801bbacfd58b20f2 /nixos/tests | |
parent | e7bc3e750410e352dff35f202713aeb11b6ce0db (diff) |
nixosTests.nscd: add nsncd specialisation
This shows that nsncd successfully passes all the tests that we run against glibc-nscd.
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/nscd.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/tests/nscd.nix b/nixos/tests/nscd.nix index 3f22221ba9dfb..1922812ef8c89 100644 --- a/nixos/tests/nscd.nix +++ b/nixos/tests/nscd.nix @@ -43,6 +43,9 @@ in withUnscd.configuration = { ... }: { services.nscd.package = pkgs.unscd; }; + withNsncd.configuration = { ... }: { + services.nscd.enableNsncd = true; + }; }; }; @@ -126,5 +129,13 @@ in # known to fail, unscd doesn't load external NSS modules # test_nss_myhostname() + + with subtest("nsncd"): + machine.succeed('${specialisations}/withNsncd/bin/switch-to-configuration test') + machine.wait_for_unit("default.target") + + test_dynamic_user() + test_host_lookups() + test_nss_myhostname() ''; }) |