summaryrefslogtreecommitdiff
path: root/test/test-udev.c
Commit message (Collapse)AuthorAgeFilesLines
* test: create devices for our udev seat checksPeter Hutterer2021-08-091-30/+29
| | | | | | | This way we can ensure that at least one device is available, and that it is the device we want. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* replace strncmp with strneq for safety-checkweizhixiang2021-03-081-1/+1
| | | | Signed-off-by: weizhixiang <weizhixiang@uniontech.com>
* test: drop the custom group namesPeter Hutterer2021-02-121-21/+21
| | | | | | | | | | | | | | The group names are forced by check (they are called suite names there) but for our test suite they provide very little benefit. Much easier to just use the filename a test is in as group name. This removes the pure substring match for --filter-group, it's now fnmatch only. group names are short enough that the typing isn't an issue and we don't want to run tests twice (e.g. 'pad' is also in 'touchpad'). This patch caused #574 until it got fixed in d838e3a3a4c Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: replace != NULL checks with ck_assert_notnullPeter Hutterer2019-02-151-43/+44
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: check for a non-null libinput in the new udev_create_seat_too_long testPeter Hutterer2019-02-151-0/+1
| | | | | | Found by coverity Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* udev: restrict the seat ID to 256 charactersPeter Hutterer2019-02-111-0/+25
| | | | | | Anything longer than that is likely a bug. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: move all the _setup() functions into a special sectionPeter Hutterer2018-03-231-2/+1
| | | | | | This way we can loop through them instead of having to add them manually. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* udev: fix segfault when resuming before assigning a seatPeter Hutterer2018-02-161-0/+43
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Add support for LIBINPUT_IGNORE_DEVICEPeter Hutterer2017-08-231-0/+47
| | | | | | | | | | | | | | | | | | The recommended way to have libinput ignore specific devices so far was to remove the ID_INPUT* properties from the device. That may also affect other pieces of the stack that need access to this device. For the niche case of a device that should only be ignored by libinput but otherwise be treated normally by the system, we now support the LIBINPUT_IGNORE_DEVICE property. If the property is set to "0", it's equivalent to being unset. This gets around some technical limitations in udev where unsetting a property is impossible via a hwdb entry. https://bugs.freedesktop.org/show_bug.cgi?id=102229 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: add test for invalid path operations on udev backendsPeter Hutterer2017-01-201-0/+57
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: prefix all test source files with "test-"Peter Hutterer2017-01-161-0/+525
They weren't originally prefixed but the various tests were, but now that we only have one test runner binary anyway, the prefix helps sorting the files easily within e.g. gcov results. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>