Re: [PATCH libinput v3 4/4] test: add tests for lid switch

2017-01-23 Thread Peter Hutterer
On Fri, Jan 20, 2017 at 04:54:16PM +1100, James Ye wrote: > Signed-off-by: James Ye > --- > Changes since v2: > - rebased off master > - renamed lid.c to test-lid.c ftr, I've added a udev rule to assign ID_INPUT_SWITCH to the test device. This way we're not dependent on the systemd release for

[PATCH libinput v3 4/4] test: add tests for lid switch

2017-01-19 Thread James Ye
Signed-off-by: James Ye --- Changes since v2: - rebased off master - renamed lid.c to test-lid.c test/Makefile.am| 4 +- test/litest-device-lid-switch.c | 58 + test/litest.c | 30 + test/litest.h | 11 ++ test/test-device.c