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>
Tue, 2 Nov 2021 15:48:55 +0000 (16:48 +0100)
commitbe0cc2ce6c947aafadb3f42dba405269f670b31c
tree87a84668b959196f7434369af6083defb0de58b7
parent0bada3f8b72e07bc8926b28957681abb5622039a
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.
src/locale/test-keymap-util.c
src/test/meson.build
test/meson.build
test/test-keymap-util/kbd-model-map [new symlink]