From e00739ff0d960615494d72846122d6afe3cf2aa0 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Fri, 13 Sep 2024 10:50:06 +0200 Subject: [PATCH] qemuxmlconftest: Add support for validating schema for 'chardev-add' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Ján Tomko --- 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.39.5