tests: Add test for vfs0050 driver

This test is based on data captured by Evgeny.

Co-authored-by: Evgeny Gagauz <evgenij.gagauz@gmail.com>
This commit is contained in:
Benjamin Berg 2020-05-13 17:30:43 +02:00 committed by Benjamin Berg
parent 4b83f8bfd9
commit 685052c605
5 changed files with 333 additions and 1 deletions

View file

@ -18,8 +18,9 @@ envs.set('NO_AT_BRIDGE', '1')
drivers_tests = [
'elan',
'vfs5011',
'synaptics',
'vfs0050',
'vfs5011',
]
if get_option('introspection')

File diff suppressed because one or more lines are too long

110
tests/vfs0050/capture.ioctl Normal file

File diff suppressed because one or more lines are too long

BIN
tests/vfs0050/capture.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

83
tests/vfs0050/device Normal file
View file

@ -0,0 +1,83 @@
P: /devices/pci0000:00/0000:00:14.0/usb1/1-9
N: bus/usb/001/004=12011001FF10FF088A13500060000000010109022E00010100A0320904000004FF00000007050102400000070581024000000705820240000007058303080004
E: DEVNAME=/dev/bus/usb/001/004
E: DEVTYPE=usb_device
E: DRIVER=usb
E: PRODUCT=138a/50/60
E: TYPE=255/16/255
E: BUSNUM=001
E: DEVNUM=004
E: MAJOR=189
E: MINOR=3
E: SUBSYSTEM=usb
E: ID_VENDOR=138a
E: ID_VENDOR_ENC=138a
E: ID_VENDOR_ID=138a
E: ID_MODEL=0050
E: ID_MODEL_ENC=0050
E: ID_MODEL_ID=0050
E: ID_REVISION=0060
E: ID_SERIAL=138a_0050_6d1900a1a0c0
E: ID_SERIAL_SHORT=6d1900a1a0c0
E: ID_BUS=usb
E: ID_USB_INTERFACES=:ff0000:
E: ID_VENDOR_FROM_DATABASE=Validity Sensors, Inc.
E: ID_MODEL_FROM_DATABASE=Swipe Fingerprint Sensor
E: ID_PATH=pci-0000:00:14.0-usb-0:9
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_9
E: LIBFPRINT_DRIVER=Validity VFS0050
A: authorized=1
A: avoid_reset_quirk=0
A: bConfigurationValue=1
A: bDeviceClass=ff
A: bDeviceProtocol=ff
A: bDeviceSubClass=10
A: bMaxPacketSize0=8
A: bMaxPower=100mA
A: bNumConfigurations=1
A: bNumInterfaces= 1
A: bcdDevice=0060
A: bmAttributes=a0
A: busnum=1
A: configuration=
H: descriptors=12011001FF10FF088A13500060000000010109022E00010100A0320904000004FF00000007050102400000070581024000000705820240000007058303080004
A: dev=189:3
A: devnum=4
A: devpath=9
L: driver=../../../../../bus/usb/drivers/usb
A: idProduct=0050
A: idVendor=138a
A: ltm_capable=no
A: maxchild=0
L: port=../1-0:1.0/usb1-port9
A: power/active_duration=19312
A: power/async=enabled
A: power/autosuspend=2
A: power/autosuspend_delay_ms=2000
A: power/connected_duration=1037732
A: power/control=auto
A: power/level=auto
A: power/persist=1
A: power/runtime_active_kids=0
A: power/runtime_active_time=19151
A: power/runtime_enabled=enabled
A: power/runtime_status=active
A: power/runtime_suspended_time=1018305
A: power/runtime_usage=0
A: power/wakeup=disabled
A: power/wakeup_abort_count=
A: power/wakeup_active=
A: power/wakeup_active_count=
A: power/wakeup_count=
A: power/wakeup_expire_count=
A: power/wakeup_last_time_ms=
A: power/wakeup_max_time_ms=
A: power/wakeup_total_time_ms=
A: quirks=0x0
A: removable=fixed
A: rx_lanes=1
A: serial=6d1900a1a0c0
A: speed=12
A: tx_lanes=1
A: urbnum=8
A: version= 1.10