keytable: Add keymap test
PATCH v4 1/1 keytable: Add keymap test
This new test will try to parse all the ".toml" files in the directory path passed to it, error'ing out if there were parsing problems.
Run as "make check" in the keytable directory.
Signed-off-by Bastien Nocera <[email protected]>
--- utils/keytable/Makefile.am | 6 +++ utils/keytable/check_keymaps.c | 67 ++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 utils/keytable/check_keymaps.c
utils/keytable/Makefile.am +6 -0
@@ -1,9 +1,12 @@ bin_PROGRAMS = ir-keytable +noinst_PROGRAMS = check-keymaps man_MANS = ir-keytable.1 rc_keymap.5 sysconf_DATA = rc_maps.cfg keytablesystem_DATA = $(srcdir)/rc_keymaps/* udevrules_DATA = 70-infrared.rules +check_keymaps_SOURCES = toml.c toml.h check_keymaps.c + ir_keytable_SOURCES = keytable.c parse.h ir-encode.c ir-encode.h toml.c toml.h if WITH_BPF
@@ -21,6 +24,9 @@ endif EXTRA_DIST = 70-infrared.rules rc_keymaps rc_keymaps_userspace gen_keytables.pl ir-keytable.1 rc_maps.cfg rc_keymap.5 # custom target +check: check-keymaps + $(builddir)/check-keymaps $(srcdir)/rc_keymaps/ + install-data-local: $(install_sh) -d "$(DESTDIR)$(keytableuserdir)"
utils/keytable/check_keymaps.c new file +67 -0
67 lines not on this page · raw message
Signature · 1 line
2.21.0