From a86e080fa4639a0ea7c9dc6855367f1266311342 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 7 Oct 2022 11:49:52 +0200 Subject: [PATCH] nixosTests.nscd: add nsncd specialisation This shows that nsncd successfully passes all the tests that we run against glibc-nscd. --- nixos/tests/nscd.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nixos/tests/nscd.nix b/nixos/tests/nscd.nix index 3f22221ba9df..1922812ef8c8 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() ''; })