mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
meson: tests: add storage 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
5d255f43d0
commit
cfba8b3a48
@ -40,14 +40,6 @@ if WITH_STORAGE_SHEEPDOG
|
||||
test_programs += storagebackendsheepdogtest
|
||||
endif WITH_STORAGE_SHEEPDOG
|
||||
|
||||
if WITH_STORAGE
|
||||
test_programs += storagevolxml2argvtest
|
||||
test_programs += storagepoolxml2argvtest
|
||||
test_programs += virstorageutiltest
|
||||
test_programs += storagepoolxml2xmltest
|
||||
test_programs += storagepoolcapstest
|
||||
endif WITH_STORAGE
|
||||
|
||||
if WITH_STORAGE_FS
|
||||
test_programs += virstoragetest
|
||||
endif WITH_STORAGE_FS
|
||||
@ -154,46 +146,6 @@ storagebackendsheepdogtest_LDADD = \
|
||||
$(LDADDS)
|
||||
endif WITH_STORAGE_SHEEPDOG
|
||||
|
||||
if WITH_STORAGE
|
||||
virstorageutiltest_SOURCES = \
|
||||
virstorageutiltest.c \
|
||||
testutils.c \
|
||||
testutils.h \
|
||||
$(NULL)
|
||||
virstorageutiltest_LDADD = \
|
||||
../src/libvirt_driver_storage_impl.la \
|
||||
$(LDADDS) \
|
||||
$(NULL)
|
||||
|
||||
storagevolxml2argvtest_SOURCES = \
|
||||
storagevolxml2argvtest.c \
|
||||
testutils.c testutils.h
|
||||
storagevolxml2argvtest_LDADD = \
|
||||
$(LIBXML_LIBS) \
|
||||
../src/libvirt_driver_storage_impl.la \
|
||||
../src/libvirt.la \
|
||||
$(LDADDS)
|
||||
|
||||
storagepoolxml2argvtest_SOURCES = \
|
||||
storagepoolxml2argvtest.c \
|
||||
testutils.c testutils.h
|
||||
storagepoolxml2argvtest_LDADD = \
|
||||
$(LIBXML_LIBS) \
|
||||
../src/libvirt_driver_storage_impl.la \
|
||||
../src/libvirt.la \
|
||||
$(LDADDS)
|
||||
|
||||
storagepoolxml2xmltest_SOURCES = \
|
||||
storagepoolxml2xmltest.c \
|
||||
testutils.c testutils.h
|
||||
storagepoolxml2xmltest_LDADD = $(LDADDS) \
|
||||
../src/libvirt_driver_storage_impl.la
|
||||
|
||||
storagepoolcapstest_SOURCES = \
|
||||
storagepoolcapstest.c testutils.h testutils.c
|
||||
storagepoolcapstest_LDADD = $(LDADDS)
|
||||
endif WITH_STORAGE
|
||||
|
||||
virstoragetest_SOURCES = \
|
||||
virstoragetest.c testutils.h testutils.c
|
||||
virstoragetest_LDADD = $(LDADDS) \
|
||||
|
@ -497,6 +497,16 @@ if conf.has('WITH_SECDRIVER_SELINUX')
|
||||
endif
|
||||
endif
|
||||
|
||||
if conf.has('WITH_STORAGE')
|
||||
tests += [
|
||||
{ 'name': 'storagepoolcapstest' },
|
||||
{ 'name': 'storagepoolxml2argvtest', 'link_with': [ storage_driver_impl_lib ] },
|
||||
{ 'name': 'storagepoolxml2xmltest', 'link_with': [ storage_driver_impl_lib ] },
|
||||
{ 'name': 'storagevolxml2argvtest', 'link_with': [ storage_driver_impl_lib ] },
|
||||
{ 'name': 'virstorageutiltest', 'link_with': [ storage_driver_impl_lib ] },
|
||||
]
|
||||
endif
|
||||
|
||||
foreach data : tests
|
||||
test_sources = '@0@.c'.format(data['name'])
|
||||
test_bin = executable(
|
||||
|
Loading…
x
Reference in New Issue
Block a user