mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-30 08:03:59 +00:00
autopilot: add usb_hid_reconnect run script
- Adjust script to run on Qemu x86 only fixes #4205
This commit is contained in:
parent
cd25dc4e6a
commit
a58473dece
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# USB HID test
|
# USB HID test
|
||||||
#
|
#
|
||||||
# Test connect and disconnect
|
# Test connect and disconnect on Qemu
|
||||||
|
|
||||||
assert_spec x86
|
assert_spec x86
|
||||||
|
|
||||||
@ -10,13 +10,8 @@ if {[have_spec linux]} {
|
|||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
if {[get_cmd_switch --autopilot] && [have_include "power_on/qemu"]} {
|
if {![have_include "power_on/qemu"]} {
|
||||||
puts "Run script does not support autopilot mode on Qemu."
|
puts "Test requires to be run on Qemu."
|
||||||
exit 0
|
|
||||||
}
|
|
||||||
|
|
||||||
if {[get_cmd_switch --autopilot] && ![have_spec x86_64]} {
|
|
||||||
puts "Run script does not support autopilot mode on this platform."
|
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,8 +164,6 @@ build_boot_image $boot_modules
|
|||||||
|
|
||||||
append qemu_args " -device nec-usb-xhci,id=xhci -device usb-kbd,bus=xhci.0 -nographic"
|
append qemu_args " -device nec-usb-xhci,id=xhci -device usb-kbd,bus=xhci.0 -nographic"
|
||||||
|
|
||||||
# autopilot test
|
|
||||||
#run_genode_until forever
|
|
||||||
# wait for keyboard
|
# wait for keyboard
|
||||||
run_genode_until {.*USB HID.*Keyboard.*} 60
|
run_genode_until {.*USB HID.*Keyboard.*} 60
|
||||||
|
|
||||||
@ -188,12 +181,14 @@ for {set i 0} {$i < 50} {incr i} {
|
|||||||
send "device_add usb-kbd,id=ukb1\n"
|
send "device_add usb-kbd,id=ukb1\n"
|
||||||
|
|
||||||
# wait for keyboard
|
# wait for keyboard
|
||||||
run_genode_until {.*USB HID.*Keyboard.*\n} 20 $spawn_id
|
run_genode_until {.*USB HID.*Keyboard.*\n} 10 $spawn_id
|
||||||
|
|
||||||
# disconnect keyboard
|
# disconnect keyboard
|
||||||
send "device_del ukb1\n"
|
send "device_del ukb1\n"
|
||||||
|
|
||||||
# wait for disconnect
|
# wait for disconnect
|
||||||
run_genode_until {.*USB disconnect.*\n} 20 $spawn_id
|
run_genode_until {.*USB disconnect.*\n} 10 $spawn_id
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
puts "\nTest succeeded\n"
|
||||||
|
@ -69,6 +69,7 @@ timeout_smp
|
|||||||
timer_accuracy
|
timer_accuracy
|
||||||
tz_vmm
|
tz_vmm
|
||||||
usb_hid_raw
|
usb_hid_raw
|
||||||
|
usb_hid_reconnect
|
||||||
vbox5_genode_usb_hid_raw
|
vbox5_genode_usb_hid_raw
|
||||||
vbox5_ubuntu_16_04_32
|
vbox5_ubuntu_16_04_32
|
||||||
vbox5_ubuntu_16_04_64
|
vbox5_ubuntu_16_04_64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user