[PATCH 4/8] qemuxmlconftest: Add support for validating schema for 'chardev-add'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux