From 9028d728f82a5ecedf12f641d563968c30025b4d Mon Sep 17 00:00:00 2001 From: Hugues Fafard Date: Tue, 27 Jul 2021 20:21:46 +0200 Subject: 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 --- tests/data/cli/compare/virt-install-many-devices.xml | 7 +++++++ tests/test_cli.py | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'tests') 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 @@ + + + + + + + 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") -- cgit v1.2.1