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 <[email protected]>
---
 tests/qemuxmlconftest.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/qemuxmlconftest.c b/tests/qemuxmlconftest.c
index 6fc8d5eabd..914326bc3c 100644
--- a/tests/qemuxmlconftest.c
+++ b/tests/qemuxmlconftest.c
@@ -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
-- 
2.46.0

Reply via email to