selftests/hid: tablets: convert the primary button tests
authorBenjamin Tissoires <bentiss@kernel.org>
Wed, 6 Dec 2023 10:46:02 +0000 (11:46 +0100)
committerBenjamin Tissoires <bentiss@kernel.org>
Thu, 7 Dec 2023 08:52:04 +0000 (09:52 +0100)
commit1f01537ef17efec97a8936c62e4ffa704cab7c06
treec7e42d13dcef4225d1cb376b926a3b1961855264
parent74452d6329be73dd2f5562005e5eef2c7bda7c5b
selftests/hid: tablets: convert the primary button tests

We get more descriptive in what we are doing, and also get more
information of what is actually being tested. Instead of having a non
exhaustive button changes that are semi-randomly done, we can describe
all the states we want to test.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Jiri Kosina <jkosina@suse.com>
Link: https://lore.kernel.org/r/20231206-wip-selftests-v2-11-c0350c2f5986@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/tests/test_tablet.py