qemuxmlconftest: Add support for validating schema for 'chardev-add'

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>
This commit is contained in:
Peter Krempa 2024-09-13 10:50:06 +02:00
parent 36d06a5637
commit e00739ff0d

View 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