From: Rayhan Faizel Date: Wed, 15 May 2024 10:27:54 +0000 (+0530) Subject: qemuhotplugtest: Add testcases for hotplugging evdev input devices X-Git-Tag: v10.4.0-rc1~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34f52aec286af47066484e8a96ecba0ef8e79451;p=thirdparty%2Flibvirt.git qemuhotplugtest: Add testcases for hotplugging evdev input devices This patch adds testcases to exercise hotplugging/hotunplugging evdev input devices. Signed-off-by: Rayhan Faizel Reviewed-by: Michal Privoznik --- diff --git a/tests/qemuhotplugtest.c b/tests/qemuhotplugtest.c index 961a7a3c64..d935ad58ed 100644 --- a/tests/qemuhotplugtest.c +++ b/tests/qemuhotplugtest.c @@ -774,6 +774,11 @@ mymain(void) "device_del", QMP_DEVICE_DELETED("scsi0-0-0-4") QMP_OK, "blockdev-del", QMP_OK); + DO_TEST_ATTACH("x86_64", "base-live", "input-evdev", false, true, + "object-add", QMP_OK); + DO_TEST_DETACH("x86_64", "base-live", "input-evdev", false, false, + "object-del", QMP_OK); + #define DO_TEST_CPU_GROUP(archname, prefix, vcpus, expectfail) \ do { \ cpudata.test = prefix; \ diff --git a/tests/qemuhotplugtestdevices/qemuhotplug-input-evdev.xml b/tests/qemuhotplugtestdevices/qemuhotplug-input-evdev.xml new file mode 100644 index 0000000000..7f3d9cfd72 --- /dev/null +++ b/tests/qemuhotplugtestdevices/qemuhotplug-input-evdev.xml @@ -0,0 +1,3 @@ + + + diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+input-evdev.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+input-evdev.xml new file mode 100644 index 0000000000..50d8815a5c --- /dev/null +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+input-evdev.xml @@ -0,0 +1,58 @@ + + hotplug + d091ea82-29e6-2e34-3005-f02617b36e87 + 4194304 + 4194304 + 4 + + hvm + + + + + + + + + qemu64 + + + destroy + restart + restart + + /usr/bin/qemu-system-x86_64 + + +
+ + + +
+ + + +
+ + + + + + +
+ + + + + + + + + + + +