[PATCH weston 0/8] tests: Add input event timestamp tests

Alexandros Frantzis alexandros.frantzis at collabora.com
Mon Dec 4 13:34:00 UTC 2017


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 an RFC proposal
are already on-going in the mailing list).

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

Patches (3) and (4) reorganize the pointer tests to make it easier to
add new test cases.

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

Alexandros Frantzis (8):
  shared: Add timespec_normalize helper
  shared: Add helpers to convert between protocol data and timespec
  tests: Move wl_pointer tests to their own file
  tests: Use separate test cases for pointer motion and button tests
  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                           |  15 +-
 clients/presentation-shm.c            |   9 +-
 libweston/compositor.c                |   9 +-
 protocol/weston-test.xml              |  25 +++
 shared/timespec-util.h                |  67 ++++++
 tests/event-test.c                    | 256 ----------------------
 tests/internal-screenshot-test.c      |   2 +-
 tests/keyboard-test.c                 |  58 +++--
 tests/pointer-test.c                  | 385 ++++++++++++++++++++++++++++++++++
 tests/presentation-test.c             |   9 +-
 tests/subsurface-shot-test.c          |   2 +-
 tests/timespec-test.c                 | 131 ++++++++++++
 tests/{button-test.c => touch-test.c} |  58 ++---
 tests/weston-test-client-helper.c     |  19 +-
 tests/weston-test-client-helper.h     |  10 +
 tests/weston-test.c                   |  45 +++-
 16 files changed, 777 insertions(+), 323 deletions(-)
 create mode 100644 tests/pointer-test.c
 rename tests/{button-test.c => touch-test.c} (50%)

-- 
2.14.1



More information about the wayland-devel mailing list