diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2019-06-10 22:00:40 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2019-06-14 08:52:58 +1000 |
commit | 9dbcc686215c8c20b56fd9c2937703c7ac131536 (patch) | |
tree | 321cf9a6bd483406249d75338d6bc168d252b7ef /test/litest-device-dell-canvas-totem.c | |
parent | bb66232298d4c4cefc4edca741dee762cb6d7193 (diff) | |
download | libinput-9dbcc686215c8c20b56fd9c2937703c7ac131536.tar.gz |
test: auto-generate the udev rules
We only ever set properties in the devices, so let's make that more explicit
and auto-generate the udev rule. This way we're hopefully better protected
from the various typos that hid in those rules over the years, but also be
prepared for passing the udev property key/value pairs elsewhere.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/litest-device-dell-canvas-totem.c')
-rw-r--r-- | test/litest-device-dell-canvas-totem.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/test/litest-device-dell-canvas-totem.c b/test/litest-device-dell-canvas-totem.c index 19f00c58..74cb73dd 100644 --- a/test/litest-device-dell-canvas-totem.c +++ b/test/litest-device-dell-canvas-totem.c @@ -107,15 +107,6 @@ static int events[] = { -1, -1, }; -static const char udev_rule[] = -"ACTION==\"remove\", GOTO=\"totem_end\"\n" -"KERNEL!=\"event*\", GOTO=\"totem_end\"\n" -"\n" -"ATTRS{name}==\"litest Advanced Silicon S.A. CoolTouch® System System Multi Axis*\",\\\n" -" ENV{LIBINPUT_DEVICE_GROUP}=\"dell-canvas-totem-group\"\n" -"\n" -"LABEL=\"totem_end\""; - TEST_DEVICE("dell-canvas-totem", .type = LITEST_DELL_CANVAS_TOTEM, .features = LITEST_TOTEM | LITEST_TABLET, @@ -125,5 +116,8 @@ TEST_DEVICE("dell-canvas-totem", .id = &input_id, .events = events, .absinfo = absinfo, - .udev_rule = udev_rule, + .udev_properties = { + { "LIBINPUT_DEVICE_GROUP", "dell-canvas-totem-group" }, + { NULL }, + }, ) |