nixosTests.nscd: add nsncd specialisation

This shows that nsncd successfully passes all the tests that we run
against glibc-nscd.
This commit is contained in:
Florian Klink 2022-10-07 11:49:52 +02:00
parent e7bc3e7504
commit a86e080fa4

View file

@ -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()
'';
})