usb.cfg 6.0 KB
Newer Older
1
- usb:
2
    virt_test_type = qemu
3
    only Linux
4 5
    no Host_RHEL.5
    no Host_RHEL.6.1
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
    restart_vm = yes
    kill_vm_on_error = yes
    usbs += " usbtest"

    # usb controllers
    variants:
        - uhci:
            usb_type_usbtest = piix3-usb-uhci
            usb_controller_testdev = uhci
            usb_max_port_usbtest = 2
            drive_format_stg = "usb1"
        - ehci:
            usb_type_usbtest = ich9-usb-ehci1
            usb_controller_testdev = ehci
            usb_max_port_usbtest = 6
            drive_format_stg = "usb2"
        - xhci:
            usb_type_usbtest = nec-usb-xhci
            usb_controller_testdev = xhci
            usb_max_port_usbtest = 4
            drive_format_stg = "usb3"

    # usb devices (boot+reboot tests)
    variants:
        - @usb_nodev:
31 32
            # Not used in RHEL testing.
            no Host_RHEL
33
            only usb_storage, usb_host, usb_multi_disk
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
        - usb_kbd:
            only usb_boot, usb_reboot, usb_hotplug
            usb_type_testdev = "usb-kbd"
            info_usb_name = "QEMU USB Keyboard"
            vendor_id = "0627"
            product_id = "0001"
            vendor = "Adomax Technology Co., Ltd"
            product = "QEMU USB Keyboard"
        - usb_mouse:
            only usb_boot, usb_reboot, usb_hotplug
            usb_type_testdev = "usb-mouse"
            info_usb_name = "QEMU USB Mouse"
            vendor_id = "0627"
            product_id = "0001"
            vendor = "Adomax Technology Co., Ltd"
            product = "QEMU USB Mouse"
        - usb_tablet:
            only usb_boot, usb_reboot, usb_hotplug
            usb_type_testdev = "usb-tablet"
            info_usb_name = "QEMU USB Tablet"
            vendor_id = "0627"
            product_id = "0001"
            vendor = "Adomax Technology Co., Ltd"
            product = "QEMU USB Tablet"
        - usb_ccid:
            only usb_boot, usb_reboot, usb_hotplug
            usb_type_testdev = "usb-ccid"
            info_usb_name = "QEMU USB CCID"
62
            vendor_id = "08E6"
63 64 65 66
            product_id = "4433"
            vendor = "Gemplus"
            product = "QEMU USB CCID"
        - usb_audio:
67
            no Host_RHEL.6
68 69 70
            only usb_boot, usb_reboot, usb_hotplug
            usb_type_testdev = usb-audio
            info_usb_name = "QEMU USB Audio"
71
            vendor_id = "46F4"
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
            product_id = "0002"
            vendor = ""
            product = "QEMU USB Audio"
        - usb_hub:
            only usb_boot, usb_reboot, usb_hotplug
            usb_type_testdev = usb-hub
            info_usb_name = "QEMU USB Hub"
            vendor_id = "(0000|0409)"
            product_id = "(0000|55aa)"
            vendor = ""
            product = "QEMU USB Hub"

    # usb tests
    variants:
        - usb_boot:
87
            type = usb_basic_check
88
            usb_devices += " testdev"
89 90 91 92 93 94 95
            deviceid_str = "%s:%s"
            chk_usb_info_cmd = "lsusb -v"
            Windows:
                deviceid_str = "VID_%s&PID_%s"
                chk_usb_info_cmd = 'wmic path Win32_USBControllerDevice get Dependent | find "USB"'
                vendor_equal = ""
                product_equal = ""
96
        - usb_reboot:
97
            type = usb_basic_check
98 99
            reboot_method = shell
            usb_devices += " testdev"
100 101 102 103 104 105 106
            deviceid_str = "%s:%s"
            chk_usb_info_cmd = "lsusb -v"
            Windows:
                deviceid_str = "VID_%s&PID_%s"
                chk_usb_info_cmd = 'wmic path Win32_USBControllerDevice get Dependent | find "USB"'
                vendor_equal = ""
                product_equal = ""
107
        - usb_hotplug:
108 109 110 111 112 113
            #XXX: usb_hotplug uses some linux-only cmds.
            # And the pattern to verify device is pluged can't
            # work with guests older then RHEL5.
            no RHEL.3
            no RHEL.4
            no RHEL.5
114
            type = usb_hotplug
115 116 117 118 119
            #XXX: Now usb_hotplug doesn't support QMP monitor.
            # Limit it to human monitor only.
            monitor_type = human
            monitors = humanmonitor1
            main_monitor = humanmonitor1
120
        - usb_storage:
121
            type = usb_storage
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
            images += " stg"
            image_boot_image1 = yes
            image_name_stg = "usbdevice"
            image_format_stg = "qcow2"
            image_boot_stg = no
            drive_index_stg = 1
            create_image_stg = yes
            image_size_stg = 10M
            fdisk_string = "10 MB, 10485760 bytes"
            format_timeout = 400
            check_serial_option = yes
            check_removable_option = yes
            check_io_size_option = yes
        - usb_host:
            # must configure which device should be used
            #usb_host_device = "<vendorid>:<productid>"
            type = usb_host
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
        - usb_multi_disk:
            only ehci
            type = multi_disk
            cmd_timeout = 1000
            black_list = C: D:
            start_vm = no
            kill_vm = yes
            create_image = yes
            image_boot_image1 = yes
            usbs = usb1
            usb_type = usb-ehci
            usb_max_port_usb1 = 6
            usb_max_port = 6
            usb_devices = ""
            variants:
154
                - one_disk_repeat:
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
                    images += " stg"
                    image_format_stg = qcow2
                    image_name_stg = storage
                    image_size_stg = 1G
                    drive_format_stg = usb2
                    drive_index_stg = 1
                    image_boot_stg = no
                    force_create_image_stg = yes
                    remove_image_stg = yes
                    n_repeat = 10
                - max_disk:
                    start_vm = no
                    usbs += " usb2 usb3 usb4"
                    stg_image_num = 24
                    stg_image_size = 1G
                    stg_image_boot = no
                    stg_drive_format = usb2
                    stg_assign_index = yes
                    remove_image = yes
                    remove_image_image1 = no
                    cmd_timeout = 1000