mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 05:17:54 +03:00
qemuxml2xmltest: Merge DO_TEST macro into DO_TEST_CAPS_INTERNAL
Now all tests invoke a real-capability version. Remove DO_TEST. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
42c09b68df
commit
ab26247f46
@ -146,28 +146,24 @@ mymain(void)
|
||||
virSetConnectSecret(conn);
|
||||
virSetConnectStorage(conn);
|
||||
|
||||
#define DO_TEST_FULL(_name, suffix, ...) \
|
||||
#define DO_TEST_CAPS_INTERNAL(_name, arch, ver, ...) \
|
||||
do { \
|
||||
static struct testQemuInfo info = { \
|
||||
.name = _name, \
|
||||
}; \
|
||||
testQemuInfoSetArgs(&info, &testConf, __VA_ARGS__); \
|
||||
testQemuInfoSetArgs(&info, &testConf, \
|
||||
ARG_CAPS_ARCH, arch, \
|
||||
ARG_CAPS_VER, ver, \
|
||||
__VA_ARGS__, ARG_END); \
|
||||
\
|
||||
testInfoSetPaths(&info, suffix, "inactive"); \
|
||||
testInfoSetPaths(&info, "." arch "-" ver, "inactive"); \
|
||||
virTestRunLog(&ret, "QEMU XML-2-XML-inactive " _name, testXML2XMLInactive, &info); \
|
||||
\
|
||||
testInfoSetPaths(&info, suffix, "active"); \
|
||||
testInfoSetPaths(&info, "." arch "-" ver, "active"); \
|
||||
virTestRunLog(&ret, "QEMU XML-2-XML-active " _name, testXML2XMLActive, &info); \
|
||||
testQemuInfoClear(&info); \
|
||||
} while (0)
|
||||
|
||||
#define DO_TEST_CAPS_INTERNAL(name, arch, ver, ...) \
|
||||
DO_TEST_FULL(name, "." arch "-" ver, \
|
||||
ARG_CAPS_ARCH, arch, \
|
||||
ARG_CAPS_VER, ver, \
|
||||
__VA_ARGS__, \
|
||||
ARG_END)
|
||||
|
||||
#define DO_TEST_CAPS_ARCH_LATEST_FULL(name, arch, ...) \
|
||||
DO_TEST_CAPS_INTERNAL(name, arch, "latest", __VA_ARGS__)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user