mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
meson: tests: add nss specific tests
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
parent
9b31c026e0
commit
7dc94bafe3
@ -96,7 +96,6 @@ endif WITH_STORAGE_FS
|
|||||||
|
|
||||||
if WITH_NSS
|
if WITH_NSS
|
||||||
test_helpers += nsslinktest nssguestlinktest
|
test_helpers += nsslinktest nssguestlinktest
|
||||||
test_programs += nsstest nssguesttest
|
|
||||||
endif WITH_NSS
|
endif WITH_NSS
|
||||||
|
|
||||||
test_scripts =
|
test_scripts =
|
||||||
@ -436,25 +435,6 @@ viridentitytest_DEPENDENCIES = libsecurityselinuxhelper.la \
|
|||||||
endif WITH_SELINUX
|
endif WITH_SELINUX
|
||||||
|
|
||||||
if WITH_NSS
|
if WITH_NSS
|
||||||
nsstest_SOURCES = \
|
|
||||||
nsstest.c testutils.h testutils.c
|
|
||||||
nsstest_CFLAGS = \
|
|
||||||
$(AM_CFLAGS) \
|
|
||||||
-I$(top_srcdir)/tools/nss
|
|
||||||
nsstest_LDADD = \
|
|
||||||
$(LDADDS) \
|
|
||||||
../tools/nss/libnss_libvirt_impl.la
|
|
||||||
|
|
||||||
nssguesttest_SOURCES = \
|
|
||||||
nsstest.c testutils.h testutils.c
|
|
||||||
nssguesttest_CFLAGS = \
|
|
||||||
-DLIBVIRT_NSS_GUEST \
|
|
||||||
$(AM_CFLAGS) \
|
|
||||||
-I$(top_srcdir)/tools/nss
|
|
||||||
nssguesttest_LDADD = \
|
|
||||||
$(LDADDS) \
|
|
||||||
../tools/nss/libnss_libvirt_guest_impl.la
|
|
||||||
|
|
||||||
## Intentionaly not linking with anything else.
|
## Intentionaly not linking with anything else.
|
||||||
## See the test source for more detailed explanation.
|
## See the test source for more detailed explanation.
|
||||||
nsslinktest_SOURCES = nsslinktest.c
|
nsslinktest_SOURCES = nsslinktest.c
|
||||||
|
@ -410,6 +410,23 @@ if conf.has('WITH_NODE_DEVICES')
|
|||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if conf.has('WITH_NSS')
|
||||||
|
tests += [
|
||||||
|
{
|
||||||
|
'name': 'nsstest',
|
||||||
|
'include': [ nss_inc_dir ],
|
||||||
|
'link_with': [ nss_libvirt_impl ],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name': 'nssguesttest',
|
||||||
|
'sources': [ 'nsstest.c' ],
|
||||||
|
'c_args': [ '-DLIBVIRT_NSS_GUEST' ],
|
||||||
|
'include': [ nss_inc_dir ],
|
||||||
|
'link_with': [ nss_libvirt_guest_impl ],
|
||||||
|
},
|
||||||
|
]
|
||||||
|
endif
|
||||||
|
|
||||||
foreach data : tests
|
foreach data : tests
|
||||||
test_sources = '@0@.c'.format(data['name'])
|
test_sources = '@0@.c'.format(data['name'])
|
||||||
test_bin = executable(
|
test_bin = executable(
|
||||||
|
@ -88,3 +88,5 @@ nss_libvirt_guest_lib = shared_library(
|
|||||||
install: true,
|
install: true,
|
||||||
install_dir: libdir,
|
install_dir: libdir,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
nss_inc_dir = include_directories('.')
|
||||||
|
Loading…
Reference in New Issue
Block a user