mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: move sexpr2xml tests to WITH_LIBXL
In preparation of removing the legacy Xen driver, move the sexpr2xml tests from WITH_XEN to WITH_LIBXL. Even though the legacy driver will be removed, we'll want to maintain the ability to convert sexpr to XML. Requires fixing up the tests to account for different behavior of Xen vs libxl post parse functions. There is some test file fallout due to differences in handling of default values between xend and libxl. Signed-off-by: Jim Fehlig <jfehlig@suse.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -273,12 +273,12 @@ ssh_SOURCES = ssh.c
|
||||
ssh_LDADD = $(COVERAGE_LDFLAGS)
|
||||
|
||||
if WITH_XEN
|
||||
test_programs += sexpr2xmltest \
|
||||
xmconfigtest xencapstest
|
||||
test_programs += xmconfigtest xencapstest
|
||||
endif WITH_XEN
|
||||
|
||||
if WITH_LIBXL
|
||||
test_programs += xlconfigtest xml2sexprtest libxlxml2domconfigtest
|
||||
test_programs += xlconfigtest xml2sexprtest sexpr2xmltest \
|
||||
libxlxml2domconfigtest
|
||||
test_libraries += virmocklibxl.la
|
||||
endif WITH_LIBXL
|
||||
|
||||
@@ -502,11 +502,6 @@ if WITH_XEN
|
||||
xen_LDADDS = ../src/libvirt_driver_xen_impl.la
|
||||
xen_LDADDS += $(LDADDS)
|
||||
|
||||
sexpr2xmltest_SOURCES = \
|
||||
sexpr2xmltest.c testutilsxen.c testutilsxen.h \
|
||||
testutils.c testutils.h
|
||||
sexpr2xmltest_LDADD = $(xen_LDADDS)
|
||||
|
||||
xmconfigtest_SOURCES = \
|
||||
xmconfigtest.c testutilsxen.c testutilsxen.h \
|
||||
testutils.c testutils.h
|
||||
@@ -517,8 +512,7 @@ xencapstest_SOURCES = \
|
||||
xencapstest_LDADD = $(xen_LDADDS)
|
||||
|
||||
else ! WITH_XEN
|
||||
EXTRA_DIST += sexpr2xmltest.c xmconfigtest.c \
|
||||
xencapstest.c \
|
||||
EXTRA_DIST += xmconfigtest.c xencapstest.c \
|
||||
testutilsxen.c testutilsxen.h
|
||||
endif ! WITH_XEN
|
||||
|
||||
@@ -539,6 +533,11 @@ xml2sexprtest_SOURCES = \
|
||||
testutils.c testutils.h
|
||||
xml2sexprtest_LDADD = $(libxl_LDADDS)
|
||||
|
||||
sexpr2xmltest_SOURCES = \
|
||||
sexpr2xmltest.c testutilsxen.c testutilsxen.h \
|
||||
testutils.c testutils.h
|
||||
sexpr2xmltest_LDADD = $(libxl_LDADDS)
|
||||
|
||||
libxlxml2domconfigtest_SOURCES = \
|
||||
libxlxml2domconfigtest.c testutilsxen.c testutilsxen.h \
|
||||
testutils.c testutils.h
|
||||
@@ -550,7 +549,8 @@ virmocklibxl_la_LDFLAGS = $(MOCKLIBS_LDFLAGS)
|
||||
virmocklibxl_la_LIBADD = $(MOCKLIBS_LIBS)
|
||||
|
||||
else ! WITH_LIBXL
|
||||
EXTRA_DIST += xlconfigtest.c xml2sexprtest.c libxlxml2domconfigtest.c
|
||||
EXTRA_DIST += xlconfigtest.c xml2sexprtest.c sexpr2xmltest.c \
|
||||
libxlxml2domconfigtest.c
|
||||
endif ! WITH_LIBXL
|
||||
|
||||
QEMUMONITORTESTUTILS_SOURCES = \
|
||||
|
||||
Reference in New Issue
Block a user