libinput/test
Peter Hutterer e4d50a73a1 test: fix expected delta from relative motion
We send two delta events. One may get eaten or softened by the accel code but
our expectation should be that both may get through, so the length of the
expected vector is √((2dx)² + (2dy)²). That is the maximum length we expect
though for deltas ranged [-1, 1].

Deltas above the threshold would fail this test but we can fix that when
needed.

Pointer acceleration is subject to timing changes. When running tests in
valgrind pointer accel timeouts and tracker resets may happen so we can't
guarantee a specific acceleration length.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2014-07-09 12:39:45 +10:00
..
50-litest.conf test: Prefix litest created device names with litest 2014-06-25 11:11:45 +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
keyboard.c test: prefix custom test devices with "litest" 2014-07-04 07:57:59 +10:00
litest-bcm5974.c test: add a bunch of test for click behavior on touchpads 2014-06-12 10:29:26 +10:00
litest-int.h test: allow for description-based test devices 2014-04-08 15:07:02 +10:00
litest-keyboard.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest-mouse.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest-synaptics-st.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest-synaptics-t440.c test: Add description for the T440 synaptics touchpad 2014-06-12 10:29:26 +10:00
litest-synaptics.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest-trackpoint.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest-wacom-touch.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest.c test: fix compiler warnings for comparison int vs unsigned int 2014-07-03 11:17:49 +10:00
litest.h test: Add description for the T440 synaptics touchpad 2014-06-12 10:29:26 +10:00
log.c Merge branch 'ref-counting-context' 2014-06-25 10:32:42 +10:00
Makefile.am configure: check for -lm through AC_CHECK_LIB 2014-07-03 09:59:43 +10:00
misc.c test: prefix custom test devices with "litest" 2014-07-04 07:57:59 +10:00
path.c Make context reference counted 2014-06-25 10:27:03 +10:00
pointer.c test: fix expected delta from relative motion 2014-07-09 12:39:45 +10:00
touch.c test: prefix custom test devices with "litest" 2014-07-04 07:57:59 +10:00
touchpad.c touchpad: hook up to the tapping configuration 2014-07-03 13:51:11 +10:00
udev.c Merge branch 'ref-counting-context' 2014-06-25 10:32:42 +10:00
valgrind.suppressions test: automatically run the tests against valgrind for leaks 2014-04-10 11:11:56 +10:00