mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-02 23:23:51 +00:00
meson: tests: add libvirtd 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
53481f65d7
commit
fc55e48d5b
@ -27,10 +27,6 @@ test_programs += \
|
||||
$(NULL)
|
||||
endif WITH_REMOTE
|
||||
|
||||
if WITH_LIBVIRTD
|
||||
test_programs += fdstreamtest
|
||||
endif WITH_LIBVIRTD
|
||||
|
||||
if WITH_SECDRIVER_SELINUX
|
||||
if WITH_ATTR
|
||||
test_programs += securityselinuxtest \
|
||||
@ -148,11 +144,6 @@ libvirtd_test_scripts = \
|
||||
|
||||
if WITH_LIBVIRTD
|
||||
test_scripts += $(libvirtd_test_scripts)
|
||||
|
||||
test_programs += \
|
||||
eventtest \
|
||||
virdrivermoduletest \
|
||||
virdriverconnvalidatetest
|
||||
endif WITH_LIBVIRTD
|
||||
|
||||
if WITH_SECDRIVER_APPARMOR
|
||||
@ -610,23 +601,3 @@ endif WITH_SECDRIVER_SELINUX
|
||||
virjsontest_SOURCES = \
|
||||
virjsontest.c testutils.h testutils.c
|
||||
virjsontest_LDADD = $(LDADDS)
|
||||
|
||||
if WITH_LIBVIRTD
|
||||
virdrivermoduletest_SOURCES = \
|
||||
virdrivermoduletest.c testutils.h testutils.c
|
||||
virdrivermoduletest_LDADD = $(LDADDS)
|
||||
|
||||
virdriverconnvalidatetest_SOURCES = \
|
||||
virdriverconnvalidatetest.c testutils.h testutils.c
|
||||
virdriverconnvalidatetest_LDADD = $(LDADDS)
|
||||
endif WITH_LIBVIRTD
|
||||
|
||||
if WITH_LIBVIRTD
|
||||
eventtest_SOURCES = \
|
||||
eventtest.c testutils.h testutils.c
|
||||
eventtest_LDADD = $(LDADDS)
|
||||
endif WITH_LIBVIRTD
|
||||
|
||||
fdstreamtest_SOURCES = \
|
||||
fdstreamtest.c testutils.h testutils.c
|
||||
fdstreamtest_LDADD = $(LDADDS)
|
||||
|
@ -372,6 +372,15 @@ if conf.has('WITH_ESX')
|
||||
]
|
||||
endif
|
||||
|
||||
if conf.has('WITH_LIBVIRTD')
|
||||
tests += [
|
||||
{ 'name': 'eventtest', 'deps': [ thread_dep ] },
|
||||
{ 'name': 'fdstreamtest' },
|
||||
{ 'name': 'virdriverconnvalidatetest' },
|
||||
{ 'name': 'virdrivermoduletest' },
|
||||
]
|
||||
endif
|
||||
|
||||
foreach data : tests
|
||||
test_sources = '@0@.c'.format(data['name'])
|
||||
test_bin = executable(
|
||||
|
Loading…
x
Reference in New Issue
Block a user