]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/locale/localed-util.c
test-keymap-util: use kbd-model-map/language-fallback-map from $(srcdir) 3384/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 4 Jun 2016 22:15:42 +0000 (18:15 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 11 Jun 2016 15:24:06 +0000 (11:24 -0400)
commitcabffaf86c17cdf74f92b8ef168fb9668f699c14
tree9eabd4df8617e89b12436f03c655a2565c657e26
parent03a44125b8af43df6ef8f4af63a8e48607de1a0d
test-keymap-util: use kbd-model-map/language-fallback-map from $(srcdir)

This adds (undocumented) environment variables SYSTEMD_KBD_MODEL_MAP
and SYSTEMD_LANGUAGE_FALLBACK_MAP, which, if set, override compiled-in
locations of those two files.

Instead of skipping tests when the maps are not installed, just use
the one from the source dir. We still cannot do the mappings the other
way if /usr/lib/kbd/keymaps is not present, so truncate the tests in
that case.

Also tweak the debug messages a bit to make it easier to see
which function is failing.
Makefile.am
src/locale/keymap-util.c
src/locale/test-keymap-util.c