disable stdout buffering

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
sort files before testing

just a prettier way of doing things
print more details for better logging
rewind the file before dumping it in case of a failure

Otherwise, the dumped output starts after the failing point.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Introduce compare_evemu to logically compare  2 evemu dumps

Sometimes, the events within a frame (between two EV_SYN events) may not
be ordered in the same way.
This comparison is not sensitive to this problem.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
add *.pyc to .gitignore
compare_evemu: ignore errors related to slots definition

Some kermel releases change the slot count, most of the time to use
less memory if not needed. Let's just write a warning.
If there is a real corruption of the device, the problem will show up
in the dynamic of the events.
Also raise warnings when minor errors occurs
compare_evemu fix error message if description differs
handle several dumps of different kernel releases

The idea is to pick the closest previous dump given the current kernel.