Skip to content

Commit

Permalink
meson: tests: add storage specific tests
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Hrdina <[email protected]>
Reviewed-by: Peter Krempa <[email protected]>
Reviewed-by: Neal Gompa <[email protected]>
  • Loading branch information
phrdina committed Aug 3, 2020
1 parent 5d255f4 commit cfba8b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 48 deletions.
48 changes: 0 additions & 48 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) \
Expand Down
10 changes: 10 additions & 0 deletions tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '@[email protected]'.format(data['name'])
test_bin = executable(
Expand Down

0 comments on commit cfba8b3

Please sign in to comment.