]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuxml2xmltest: Merge DO_TEST macro into DO_TEST_CAPS_INTERNAL
authorPeter Krempa <pkrempa@redhat.com>
Thu, 24 Aug 2023 14:58:01 +0000 (16:58 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 25 Aug 2023 08:08:12 +0000 (10:08 +0200)
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>
tests/qemuxml2xmltest.c

index f6be67769476ad1e13bc1fdbd8d508cb1187a803..895e24d522ba021c508fcd6c4c28e6335bd48f35 100644 (file)
@@ -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__)