test-nss-users: add new nss test that resolves users and groups
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Mar 2021 13:25:56 +0000 (14:25 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 23 Mar 2021 13:14:08 +0000 (14:14 +0100)
commitf0d1266821771724b09a00764f4e20478c77f0a2
tree7af2216618df1db81f57891855c9cb4cb992891c
parent3f9721fef0f2e4da181eab9b20bac127f30efa08
test-nss-users: add new nss test that resolves users and groups

Inspired by https://bugzilla.redhat.com/show_bug.cgi?id=1929936.
This is similar to test-nss-hosts, but does users, groups, uid, gids.

Functions tested are:
_nss_*_getpwnam_r
_nss_*_getgrnam_r
_nss_*_getpwgid_r
_nss_*_getgrgid_r

Other entry points should be tested too, but it's not relevant to the bug
I was investigating, so I'm leaving that for later ;)
src/basic/nss-util.h
src/test/meson.build
src/test/nss-test-util.c [new file with mode: 0644]
src/test/nss-test-util.h [new file with mode: 0644]
src/test/test-nss-hosts.c
src/test/test-nss-users.c [new file with mode: 0644]