mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
tests: Run virmacmaptest iff WITH_YAJL
Since the internal implementation relies on a json parser being available, it make no sense to run this test if there's none available. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
5dc6169bc8
commit
00c4970435
@ -192,7 +192,6 @@ test_programs = virshtest sockettest \
|
||||
domainconftest \
|
||||
virhostdevtest \
|
||||
vircaps2xmltest \
|
||||
virmacmaptest \
|
||||
virnetdevtest \
|
||||
virtypedparamtest \
|
||||
$(NULL)
|
||||
@ -408,7 +407,6 @@ test_libraries = libshunload.la \
|
||||
virhostcpumock.la \
|
||||
nssmock.la \
|
||||
domaincapsmock.la \
|
||||
virmacmapmock.la \
|
||||
$(NULL)
|
||||
if WITH_QEMU
|
||||
test_libraries += libqemumonitortestutils.la \
|
||||
@ -1158,6 +1156,7 @@ nssguestlinktest_CFLAGS = \
|
||||
nssguestlinktest_LDADD = ../tools/nss/libnss_libvirt_guest_impl.la
|
||||
nssguestlinktest_LDFLAGS = $(NULL)
|
||||
|
||||
if WITH_YAJL
|
||||
virmacmapmock_la_SOURCES = \
|
||||
virmacmapmock.c
|
||||
virmacmapmock_la_CFLAGS = $(AM_CFLAGS)
|
||||
@ -1166,9 +1165,15 @@ virmacmapmock_la_LIBADD = $(MOCKLIBS_LIBS)
|
||||
|
||||
virmacmaptest_SOURCES = \
|
||||
virmacmaptest.c testutils.h testutils.c
|
||||
virmacmaptest_CLFAGS = $(AM_CFLAGS);
|
||||
virmacmaptest_CLFAGS = $(AM_CFLAGS)
|
||||
virmacmaptest_LDADD = $(LDADDS)
|
||||
|
||||
test_libraries += virmacmapmock.la
|
||||
test_programs += virmacmaptest
|
||||
else ! WITH_YAJL
|
||||
EXTRA_DIST += virmacmapmock.c virmacmaptest.c
|
||||
endif ! WITH_YAJL
|
||||
|
||||
virnetdevtest_SOURCES = \
|
||||
virnetdevtest.c testutils.h testutils.c
|
||||
virnetdevtest_CFLAGS = $(AM_CFLAGS) $(LIBNL_CFLAGS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user