← Back to team overview

multi-touch-dev team mailing list archive

Testing M-t without HW

 

hi all

I am new human on this M-t group so I may step one someone toes with the following suggestion. While reading a bit on M-t I got two ideas for testing M-t, without hw:

1. Xnee
---------------
Xnee can record and replay multiple input devices, although it needs some more work.

A developer can record a set of sessions using Xnee. These session typically include gestures that need to be tested. These sessions can be replayed during regression test, to verify an application, a lib or unity at a computer without M-t input device ...


2. Xnee + swinput
---------------
Record a session as above. But instead of replaying it on the X level, swinput can fake hw input devices.


So the basic idea is that person with M-t hardware records a couple of sessions which can be replayed at any computer.


DISCLAIMER: I am aware that scripted sessions are not going to solve all problems, but it may solve (hmmm, and introduce) some. And as always, automated tests smells a bit like snake oil ;)



regards, henrik




Xnee
==================================
The basic features of Xnee:

* Records X11 data using the RECORD extension
* Replays device events using XTest
   syncs replay using all data but device events

I've just added support for XInput (not XI2, but rather "XI 1.5") to Xnee.


Swinput
==================================
Fakes 1-xx HW input devices via the kernel. So no X11 faking at all.

Swinput has had the support for a while.


swinput mice as seen by xinput:
----------------------------------

⎡ Virtual core pointer       id=2	[master pointer  (3)]
.........
⎜   ↳ swinput faked mouse device id=14	[slave  pointer  (2)]
⎜   ↳ swinput faked mouse device id=15	[slave  pointer  (2)]



Follow ups