mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
meson: tests: add node device 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
6a452eadc2
commit
9b31c026e0
@ -99,10 +99,6 @@ test_helpers += nsslinktest nssguestlinktest
|
||||
test_programs += nsstest nssguesttest
|
||||
endif WITH_NSS
|
||||
|
||||
if WITH_NODE_DEVICES
|
||||
test_programs += nodedevmdevctltest
|
||||
endif WITH_NODE_DEVICES
|
||||
|
||||
test_scripts =
|
||||
libvirtd_test_scripts = \
|
||||
libvirtd-fail \
|
||||
@ -388,16 +384,6 @@ storagepoolcapstest_SOURCES = \
|
||||
storagepoolcapstest_LDADD = $(LDADDS)
|
||||
endif WITH_STORAGE
|
||||
|
||||
if WITH_NODE_DEVICES
|
||||
nodedevmdevctltest_SOURCES = \
|
||||
nodedevmdevctltest.c \
|
||||
testutils.c testutils.h
|
||||
|
||||
nodedevmdevctltest_LDADD = \
|
||||
../src/libvirt_driver_nodedev_impl.la \
|
||||
$(LDADDS)
|
||||
endif WITH_NODE_DEVICES
|
||||
|
||||
virnetmessagetest_SOURCES = \
|
||||
virnetmessagetest.c testutils.h testutils.c
|
||||
virnetmessagetest_LDADD = $(LDADDS)
|
||||
|
@ -404,6 +404,12 @@ if conf.has('WITH_NETWORK')
|
||||
]
|
||||
endif
|
||||
|
||||
if conf.has('WITH_NODE_DEVICES')
|
||||
tests += [
|
||||
{ 'name': 'nodedevmdevctltest', 'link_with': [ node_device_driver_impl ] },
|
||||
]
|
||||
endif
|
||||
|
||||
foreach data : tests
|
||||
test_sources = '@0@.c'.format(data['name'])
|
||||
test_bin = executable(
|
||||
|
Loading…
Reference in New Issue
Block a user