summaryrefslogtreecommitdiff
path: root/test/litest-device-waltop-tablet.c
Commit message (Collapse)AuthorAgeFilesLines
* test: auto-assign the tool type for tablet testsPeter Hutterer2020-09-221-2/+2
| | | | | | | | | | | | | | The current tool type test merely sends BTN_TOOL_RUBBER (and others) manually and expects libinput to do the right thing. This only tests the perfect sequence but not test weird devices that behave differently on a tool type switch. So let's fix this by setting the tool type as property on the libinput test device itself, and then emulate the tool switch through litest. For special devices this will need extra callbacks, this is just the initial framework to handle those buttons. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: mark all current tablets as having a hover featurePeter Hutterer2019-02-131-1/+1
| | | | | | | The totem, also a tablet tool, is a tool that is always tip-down and does not support hovering so we need to be able to distinguish this for tests. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Switch from udev property parsing to the quirks systemPeter Hutterer2018-06-081-10/+5
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: switch to a TEST_DEVICE macro for all the litest test devicesPeter Hutterer2017-09-211-10/+2
| | | | | | | | | | | | | | | | The test device initialization code was a bit of duplicated boilerplate and required adding a reference to the devices to the 'devices' list in litest.c. Automate this with a new TEST_DEVICE macro that adds the devices to a custom section in the binary, then loops throught that section to get the device out. This reduces the boilerplate for each test device to just the TEST_MACRO and the LITEST_foo device enum entry. It also now automates the shortname of the device. The device's shortname was standardised in this approach as well, lowercase and dashes only. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: fix udev rule for waltop tablet test devicePeter Hutterer2017-02-171-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: fix two test udev rulesPeter Hutterer2017-01-301-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Fix the license for a bunch of tablet test devicesPeter Hutterer2016-12-011-16/+17
| | | | | | | | | | | | | In bc9f16b40e23a1d25c105a4207b97d65253f0d98 the license was updated from MIT X11 to MIT Expat, see that commit for details. These devices came in from the tablet-support branch which didn't get updated, any new tablet device that used those as templated thus copied the license. Fix this, make the license text the same as all other files. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
* Drop HAVE_CONFIG_H ifdefPeter Hutterer2016-12-011-2/+0
| | | | | | | | We have one. Yay. Lucky us. Go forth and celebrate. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
* tablet: reject tablets without resolutionPeter Hutterer2016-11-291-0/+11
| | | | | | | Fix the kernel driver or get a udev override in place. Tablets not having a physical size is not ok. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: fix a bunch of tablet tests for pressure threshold introductionPeter Hutterer2016-01-111-0/+1
| | | | | | | | | | | | | | Preparation work for a pressure threshold where we can't just send a BTN_TOUCH and expect it to trigger the tip event. So the event sequence now needs to resemble the right order so the threshold will be triggered. In some cases requires processing an axis event before the tip event. That behavior will be changed in a follow-up commit. It also requires that all tablets set ABS_PRESSURE on proximity in. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Jason Gerecke <jason.gerecke@wacom.com>
* tablet: add tilt testsPeter Hutterer2015-12-211-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: set default axis values for all tablet devicesPeter Hutterer2015-12-141-0/+18
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Merge branch 'master' into tablet-supportPeter Hutterer2015-07-141-0/+222