test-keymap-util: always use kbd-model-map we ship
authorFranck Bui <fbui@suse.com>
Wed, 19 May 2021 12:14:58 +0000 (14:14 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Nov 2021 14:01:30 +0000 (15:01 +0100)
commitf97480d98d642064294bbaaf49ca7c65767f6cfd
treeef5cdf9a12c1cfcbb538c01d32c7e1547c77a287
parent17555384e5ea114a6e207561ec8050b906498f74
test-keymap-util: always use kbd-model-map we ship

This test makes assumptions on the availability of some mappings contained in
kbd-model-map and therefore strongly relies on the version shipped by
upstream. IOW the test is likely to fail if it's installed on a system with a
more comprehensive kbd-model-map.

This patch makes the upstream kbd-model-map file available via a symlink in
test/testdata/test-keymap-util dir and makes sure that this specific version is
always used by test-keymap-util regardless of whether the test is installed and
run on a different system or directly run (optionally via meson) from the
project working dir.

(cherry picked from commit be0cc2ce6c947aafadb3f42dba405269f670b31c)
src/locale/test-keymap-util.c
src/test/meson.build
test/meson.build
test/test-keymap-util/kbd-model-map [new symlink]