HID: wacom: Add additional tests of confidence behavior
authorJason Gerecke <jason.gerecke@wacom.com>
Tue, 19 Dec 2023 21:33:44 +0000 (13:33 -0800)
committerJiri Kosina <jkosina@suse.com>
Tue, 19 Dec 2023 23:01:50 +0000 (00:01 +0100)
commitb0fb904d074e810c22c26883b8ed4489c17d1292
treeb331a9bff035f3d70539e4f657ec37a8bb582f5d
parent502296030ec6b0329e00f9fb15018e170cc63037
HID: wacom: Add additional tests of confidence behavior

Test for proper driver behavior when the touch confidence bit is set
or cleared. Test the three flavors of touch confidence loss (tipswitch
cleared before confidence, tipswitch and confidence cleared at the same
time, and tipswitch only cleared when touch is actually removed). Also
test two flavors of touch confidence gain (confidence added to a touch
that was "never" confident, and confidence added to a touch that was
previously confident).

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
tools/testing/selftests/hid/tests/test_wacom_generic.py