xi2detach should be spelled with one 't'


Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
xi2detach: should use only XI2.0

As we are only dealing with hierarchy events, XI2.0 is enough. It will
help earlier server to work.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
xi2detach: add warning from Peter as a comment

Reported by Peter Hutterer <peter.hutterer _at_ redhat.com>

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
compare_evemu: add current values of each valuator at each slot

The case happens when a new kernel changes the slot assignment.
// Common path:
           slot 1
           trackingID 3
           x 23
           y 52
           syn
           trackingID -1
           syn

// Previous kernel: | New kernel:
                    |
slot 2              | slot 1
trackingID 4        | trackingID 4
x 23                |
y 55                | y 55
syn                 | syn
trackingID -1       | trackingID -1
syn                 | syn

The two sequences are semantically equivalent, but the second is missing
one event.
This patch adds all states of each valuator at each frame, providing
a consistent comparison even in this case.


Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
compare_evemu: ignore slots messages

two different sequences may send the same events but through different
slots. We can ignore them because if the most common case lies when
slots are swapped during the entire processing of the events.
If the date moved from one slot to the other, this case is not covered,
but it would require a kind of finger tracking for each slot.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
testsuite: dump diff-eable files to check when errors occurs

Artificial events are tagged with an '*' at the end of the line.
When there is an error, some manual processing is still required to
fully understand the problem, but at least this formatting allows
a tool like 'meld' to be used and to spot the main differences quickly.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
testsuite: should also ignore the last dot in .ev files

This allows to choose preferably the files from the "3.8-next" folder
than the files from the "3.8.x" folder when testing under kernel 3.8+.

'-next' declarations are for event dumps that will be included in a future
release, (3.9 in this case for instance).

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>