From 118178208e6aebea5b9c85edb752a50e82bb3144 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 18 Jun 2020 17:47:46 +1000 Subject: tests: add a test to compile all xkb_symbols section with xkbcomp Using pytest because it does a lot of the setup/tracing stuff for us. The test checks all symbols files and generates a list of tuples (layout, variant) from the files. That's then used in a generic-enough keymap to be fed to xkbcomp. Where xkbcomp fails we fail the test (and pytest will collect stdout/stderr/etc.) for us. Signed-off-by: Peter Hutterer --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f26f3b..3d5f675 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -130,3 +130,18 @@ layout_tests: expire_in: 2 weeks paths: - $INSTDIR/xkeyboard-config-test.out + +keymap_tests: + extends: .default_setup + stage: test + script: + - pacman -S --noconfirm xorg-xkbcomp python-pytest + - export XKB_CONFIG_ROOT="$INSTDIR/share/X11/xkb" + - pytest --junitxml=results.xml + artifacts: + reports: + junit: results.xml + # use the installed tree from the make_install job + needs: + - job: make_install + artifacts: true -- cgit v1.2.1