test: Add a unit test for input device classification heuristics

This uses pre-recorded evdev capabilities, so that we can check for
regressions without the devices having to be physically present.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2020-11-11 19:15:43 -08:00
parent b0eba1c55d
commit 65847539dd
2 changed files with 1035 additions and 0 deletions

View File

@ -24,6 +24,7 @@ TARGETS = \
testdrawchessboard$(EXE) \ testdrawchessboard$(EXE) \
testdropfile$(EXE) \ testdropfile$(EXE) \
testerror$(EXE) \ testerror$(EXE) \
testevdev$(EXE) \
testfile$(EXE) \ testfile$(EXE) \
testfilesystem$(EXE) \ testfilesystem$(EXE) \
testgamecontroller$(EXE) \ testgamecontroller$(EXE) \
@ -148,6 +149,9 @@ testdropfile$(EXE): $(srcdir)/testdropfile.c
testerror$(EXE): $(srcdir)/testerror.c testerror$(EXE): $(srcdir)/testerror.c
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
testevdev$(EXE): $(srcdir)/testevdev.c
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
testfile$(EXE): $(srcdir)/testfile.c testfile$(EXE): $(srcdir)/testfile.c
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) $(CC) -o $@ $^ $(CFLAGS) $(LIBS)

1031
test/testevdev.c Normal file

File diff suppressed because it is too large Load Diff