This patchset enhances the test suite with test cases that verify that
the server correctly sets input event timestamps. In the process the
input tests have been reorganized and cleaned up to make it easier to
support the new test cases.

A secondary goal of this patchset is to prepare the test suite for
testing a potential implementation of new high-resolution input
timestamps in the form of a new protocol (discussions on the proposal
are already on-going in the mailing list).

Patches (1) and (2) add timespec helpers to enable conversions
between timespec and protocol data triplets.

Patches (3) to (6) add tests for input events with a focus on verifying
event timestamps.

In v2 of this patchset I have not included the patch that introduces
timespec_normalize ([PATCH weston 1/8]), since normalized timespecs are
now a precondition of the timespec_to_proto helper function, and
existing timespec functions already produce normalized representations.
We can reintroduce it if required, e.g., if we need to normalize
timespecs from untrusted sources.

Patch-specific changes are listed in each individual patch.

Alexandros Frantzis (6):
  shared: Add timespec_from_proto helper function
  shared: Add timespec_to_proto helper function
  tests: Add checks for pointer motion and button event timestamps
  tests: Add test for pointer axis events
  tests: Add test for keyboard key event timestamps
  tests: Add test for touch event timestamps

 Makefile.am                       |  7 +++-
 clients/presentation-shm.c        |  9 +----
 libweston/compositor.c            |  9 ++---
 protocol/weston-test.xml          | 25 ++++++++++++++
 shared/timespec-util.h            | 39 +++++++++++++++++++++
 tests/internal-screenshot-test.c  |  2 +-
 tests/keyboard-test.c             | 61 ++++++++++++++++++++++++--------
 tests/pointer-test.c              | 73 +++++++++++++++++++++++++++++++++------
 tests/presentation-test.c         |  9 +----
 tests/subsurface-shot-test.c      |  2 +-
 tests/timespec-test.c             | 46 ++++++++++++++++++++++++
 tests/touch-test.c                | 71 +++++++++++++++++++++++++++++++++++++
 tests/weston-test-client-helper.c | 39 +++++++++++++++------
 tests/weston-test-client-helper.h | 10 ++++++
 tests/weston-test.c               | 45 ++++++++++++++++++++++--
 15 files changed, 387 insertions(+), 60 deletions(-)
 create mode 100644 tests/touch-test.c

-- 
2.14.1

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to