libinput/test
Peter Hutterer a9a24c33e7 test: allow partial overriding the test devices
For specific tests we need something that e.g. looks like a touchpad, but has
a different name, a different number of slots, etc. In this case, the
following code will do exactly that:

struct input_absinfo overrides[] = {
 { .value = ABS_MT_SLOT, .minimum = 0, .maximum = 100 },
 { .value = -1 },
};

litest_create_device_with_overrides(LITEST_SYNAPTICS_CLICKPAD,
				    NULL, NULL, &overrides, NULL);

For general event codes, overrides can only add to the set of events, they
can't remove.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2014-04-08 15:07:02 +10:00
..
build-cxx.cc test: Add include from C++ build test 2014-03-29 00:51:44 +01:00
build-pedantic.c test: add a build-test for -pedantic 2014-01-15 11:26:08 +10:00
litest-bcm5974.c test: if no teardown func is set, use the default 2014-04-08 15:07:02 +10:00
litest-generic-highres-touch.c test: if no teardown func is set, use the default 2014-04-08 15:07:02 +10:00
litest-int.h test: allow for description-based test devices 2014-04-08 15:07:02 +10:00
litest-keyboard.c test: if no teardown func is set, use the default 2014-04-08 15:07:02 +10:00
litest-mouse.c test: if no teardown func is set, use the default 2014-04-08 15:07:02 +10:00
litest-synaptics-st.c test: if no teardown func is set, use the default 2014-04-08 15:07:02 +10:00
litest-synaptics.c test: allow for description-based test devices 2014-04-08 15:07:02 +10:00
litest-trackpoint.c test: if no teardown func is set, use the default 2014-04-08 15:07:02 +10:00
litest-wacom-touch.c test: if no teardown func is set, use the default 2014-04-08 15:07:02 +10:00
litest.c test: allow partial overriding the test devices 2014-04-08 15:07:02 +10:00
litest.h test: allow partial overriding the test devices 2014-04-08 15:07:02 +10:00
log.c test: plug a couple of memory leaks 2014-03-27 08:46:47 +10:00
Makefile.am test: Add include from C++ build test 2014-03-29 00:51:44 +01:00
path.c test: add litest helper functions for creating uinput devices 2014-04-08 15:07:02 +10:00
pointer.c touchpad: add support for clickfingers 2014-03-24 16:39:12 +10:00
touch.c test: plug a couple of memory leaks 2014-03-27 08:46:47 +10:00
touchpad.c test: add framework for a single-touch synaptics device 2014-03-25 11:06:09 +10:00
udev.c Make it possible to have persistent libinput_seat instances 2014-02-10 22:28:46 +01:00