]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Introduce nsslinktest
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Mar 2016 14:29:51 +0000 (15:29 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Mar 2016 16:29:53 +0000 (17:29 +0100)
commit5bcd96f5317bfdb66fc66ecf1103cd40b5666a2b
treeb3c5f5beafcad55ef35737b17778eec49097d1a7
parent38e32d4ac134aa6da411b0093e788bce35775d09
tests: Introduce nsslinktest

The only purpose of this test is to catch possible linking
problems with libnss_libvirt.so.2.
One of the problems I faced was that the NSS plugin was unloaded
immediately after it got loaded and the name resolution process
continued with next configured option. Without any error. It was
very hard to debug why until I created this simple test and found
out immediately that there were some symbols missing. The reason
why problem was not caught in nsstest is that in the test we want
to use all the fancy stuff and therefore link it with libvirt.la.
So even if there's a symbol missing in the NSS plugin it will be
found in the libvirt.la.
But even after I resolved the issue we still need this test
because files the NSS plugin is built from are still live (mostly
those under utils/ dir). So as they change new symbol might be
required which would render the NSS plugin unusable.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/Makefile.am
tests/nsslinktest.c [new file with mode: 0644]