Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • xserver xserver
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 884
    • Issues 884
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 102
    • Merge requests 102
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorg
  • xserverxserver
  • Merge requests
  • !527

xfree86: Implement a test input driver

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Povilas Kanapickas requested to merge p12tic/xserver:xfree86-driver-emulated-input into master Oct 01, 2020
  • Overview 224
  • Commits 1
  • Pipelines 18
  • Changes 9

This PR implements a emulated input driver that can be used for X server testing. The driver is being included into the X server instead of living in a separate driver repository due to a recommendation by @whot here.

When included into the server configuration, the emulated input driver creates a named socked at a path specified in the configuration. Each emulated input device uses a separate named socket. The test code can then connect to the socket and issue commands that correspond directly to xf86Post{InputEvent} function calls. A synchronization primitive is included which allows the controlling code to wait until the X server processes an event completely.

The xorg-gtest framework has been improved to support this X server control interface: xorg/test/xorg-gtest!2 (closed)

Many existing Xorg tests have been refactored to use this interface: xorg/test/xorg-integration-tests!1 (merged)

Most of the tests run at around 0.1s per test. Currently no test takes more than a second to run. This could be improved further by adding an option to only probe the devices that are specified in the config file. According to the logs probing takes most of the 0.1s test run time on the fastest tests.

Edited Oct 02, 2020 by Povilas Kanapickas
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: xfree86-driver-emulated-input