mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
meson: tests: add dbus 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
13d02fbec0
commit
41fa1a4f63
@ -31,15 +31,6 @@ if WITH_LIBVIRTD
|
||||
test_programs += fdstreamtest
|
||||
endif WITH_LIBVIRTD
|
||||
|
||||
if WITH_DBUS
|
||||
test_programs += virdbustest \
|
||||
virsystemdtest \
|
||||
$(NULL)
|
||||
if WITH_POLKIT
|
||||
test_programs += virpolkittest
|
||||
endif WITH_POLKIT
|
||||
endif WITH_DBUS
|
||||
|
||||
if WITH_SECDRIVER_SELINUX
|
||||
if WITH_ATTR
|
||||
test_programs += securityselinuxtest \
|
||||
@ -610,23 +601,6 @@ test_programs += \
|
||||
virnetdevopenvswitchtest
|
||||
endif WITH_YAJL
|
||||
|
||||
if WITH_DBUS
|
||||
virdbustest_SOURCES = \
|
||||
virdbustest.c testutils.h testutils.c
|
||||
virdbustest_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
|
||||
virdbustest_LDADD = $(LDADDS) $(DBUS_LIBS)
|
||||
|
||||
virpolkittest_SOURCES = \
|
||||
virpolkittest.c testutils.h testutils.c
|
||||
virpolkittest_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
|
||||
virpolkittest_LDADD = $(LDADDS) $(DBUS_LIBS)
|
||||
|
||||
virsystemdtest_SOURCES = \
|
||||
virsystemdtest.c testutils.h testutils.c
|
||||
virsystemdtest_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
|
||||
virsystemdtest_LDADD = $(LDADDS) $(DBUS_LIBS)
|
||||
endif WITH_DBUS
|
||||
|
||||
if WITH_SECDRIVER_SELINUX
|
||||
if WITH_ATTR
|
||||
|
||||
|
@ -353,6 +353,19 @@ if conf.has('WITH_BHYVE')
|
||||
]
|
||||
endif
|
||||
|
||||
if conf.has('WITH_DBUS')
|
||||
tests += [
|
||||
{ 'name': 'virdbustest', 'deps': [ dbus_dep ] },
|
||||
{ 'name': 'virsystemdtest', 'deps': [ dbus_dep ] },
|
||||
]
|
||||
|
||||
if conf.has('WITH_POLKIT')
|
||||
tests += [
|
||||
{ 'name': 'virpolkittest', 'deps': [ dbus_dep ] },
|
||||
]
|
||||
endif
|
||||
endif
|
||||
|
||||
foreach data : tests
|
||||
test_sources = '@0@.c'.format(data['name'])
|
||||
test_bin = executable(
|
||||
|
Loading…
Reference in New Issue
Block a user