summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHugues Fafard <fafardh@posteo.de>2021-07-27 20:21:46 +0200
committerCole Robinson <crobinso@redhat.com>2021-07-27 16:04:15 -0400
commit9028d728f82a5ecedf12f641d563968c30025b4d (patch)
tree2c6d1390300fd4194441640735c4f3d44f91a00d /tests
parent4793bdaef7b2e7f3880661a5936a343fb57ac631 (diff)
downloadvirt-manager-9028d728f82a5ecedf12f641d563968c30025b4d.tar.gz
cli: --input: add support for evdev inputs
This adds support for evdev inputs which were introduced in 7.4.0, as well as passthrough inputs and some other misc options to complete the --input command. New suboptions: * source.evdev * source.dev * source.repeat * source.grab * source.grabToggle * model
Diffstat (limited to 'tests')
-rw-r--r--tests/data/cli/compare/virt-install-many-devices.xml7
-rw-r--r--tests/test_cli.py5
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/data/cli/compare/virt-install-many-devices.xml b/tests/data/cli/compare/virt-install-many-devices.xml
index 3cd14195..491a5f8a 100644
--- a/tests/data/cli/compare/virt-install-many-devices.xml
+++ b/tests/data/cli/compare/virt-install-many-devices.xml
@@ -448,6 +448,13 @@
<input type="keyboard" bus="usb"/>
<input type="tablet" bus="usb"/>
<input type="mouse" bus="ps2"/>
+ <input type="mouse" bus="virtio" model="virtio-non-transitional"/>
+ <input type="passthrough" bus="virtio">
+ <source evdev="/dev/input/event1"/>
+ </input>
+ <input type="evdev">
+ <source dev="/dev/input/event1234" repeat="on" grab="all" grabToggle="ctrl-ctrl"/>
+ </input>
<tpm model="tpm-crb">
<backend type="emulator" version="2.0"/>
</tpm>
diff --git a/tests/test_cli.py b/tests/test_cli.py
index 7a55c40e..1a5ef898 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -654,6 +654,9 @@ source.reservations.managed=no,source.reservations.source.type=unix,source.reser
--input type=keyboard,bus=usb
--input tablet
--input mouse
+--input mouse,bus=virtio,model=virtio-non-transitional
+--input passthrough,source.evdev=/dev/input/event1,bus=virtio
+--input evdev,source.dev=/dev/input/event1234,source.repeat=on,source.grab=all,source.grabToggle=ctrl-ctrl
--serial char_type=tcp,host=:2222,mode=bind,protocol=telnet,log.file=/tmp/foo.log,log.append=yes,,target.model.name=pci-serial
--serial nmdm,source.master=/dev/foo1,source.slave=/dev/foo2,alias.name=testalias7
@@ -740,7 +743,7 @@ source.reservations.managed=no,source.reservations.source.type=unix,source.reser
--xml ./devices/graphics[2]/@ef=hg
--xml xpath.create=./barenode
--xml xpath.delete=./deleteme/deleteme2
-""", "many-devices", predefine_check="5.3.0")
+""", "many-devices", predefine_check="7.4.0")