]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuxmlconftest: Add support for validating schema for 'chardev-add'
authorPeter Krempa <pkrempa@redhat.com>
Fri, 13 Sep 2024 08:50:06 +0000 (10:50 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 19 Sep 2024 08:30:14 +0000 (10:30 +0200)
While qemu doesn't yet support JSON args for chardev, we can at least
for test purposes of schema validation plumb it to the '-chardev'
command as it's easier to create test cases via XML than to write them
into code in 'qemuhotplugtest'.

Additionally once this becomes available and if e.g. the syntax is fixed
we'll be able to also catch the differences early.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxmlconftest.c

index 6fc8d5eabdbad1949b6ebd0c881af990d985c6f3..914326bc3ca0442e0942105c4eefc6dab330c3ad 100644 (file)
@@ -504,6 +504,7 @@ static const struct testValidateSchemaCommandData commands[] = {
     { "-netdev", "netdev_add", false },
     { "-object", "object-add", false },
     { "-device", "device_add", true },
+    { "-chardev", "chardev-add", false },
 };
 
 static int