summaryrefslogtreecommitdiff
path: root/test/litest-device-wacom-intuos3-pad.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2019-06-10 22:00:40 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2019-06-14 08:52:58 +1000
commit9dbcc686215c8c20b56fd9c2937703c7ac131536 (patch)
tree321cf9a6bd483406249d75338d6bc168d252b7ef /test/litest-device-wacom-intuos3-pad.c
parentbb66232298d4c4cefc4edca741dee762cb6d7193 (diff)
downloadlibinput-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-wacom-intuos3-pad.c')
-rw-r--r--test/litest-device-wacom-intuos3-pad.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/test/litest-device-wacom-intuos3-pad.c b/test/litest-device-wacom-intuos3-pad.c
index 5e3569fa..7c972c88 100644
--- a/test/litest-device-wacom-intuos3-pad.c
+++ b/test/litest-device-wacom-intuos3-pad.c
@@ -85,15 +85,6 @@ static int events[] = {
-1, -1,
};
-static const char udev_rule[] =
-"ACTION==\"remove\", GOTO=\"pad_end\"\n"
-"KERNEL!=\"event*\", GOTO=\"pad_end\"\n"
-"\n"
-"ATTRS{name}==\"litest Wacom Intuos3 4x6 Pad*\",\\\n"
-" ENV{ID_INPUT_TABLET_PAD}=\"1\"\n"
-"\n"
-"LABEL=\"pad_end\"";
-
TEST_DEVICE("wacom-intuos3-pad",
.type = LITEST_WACOM_INTUOS3_PAD,
.features = LITEST_TABLET_PAD | LITEST_STRIP,
@@ -103,5 +94,8 @@ TEST_DEVICE("wacom-intuos3-pad",
.id = &input_id,
.events = events,
.absinfo = absinfo,
- .udev_rule = udev_rule,
+ .udev_properties = {
+ { "ID_INPUT_TABLET_PAD", "1" },
+ { NULL },
+ },
)