mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-05 15:48:02 +02:00
gitlab CI: add a job to make sure we're running all test suites
Only needs to run when meson.build or the CI script update Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
d3115f4875
commit
d0d2994254
2 changed files with 60 additions and 0 deletions
|
|
@ -814,6 +814,43 @@ python-format@fedora:33:
|
|||
- black $(git grep -l '^#!/usr/bin/env python3')
|
||||
- git diff --exit-code || (echo "Please run Black against all Python files" && false)
|
||||
|
||||
# A job to check we're actually running all test suites in the CI
|
||||
check-test-suites:
|
||||
extends:
|
||||
- .fedora-build@template
|
||||
before_script:
|
||||
- dnf install -y jq
|
||||
script:
|
||||
- meson builddir
|
||||
- meson introspect builddir --test | jq -r '.[].name' | grep 'libinput-test-suite' | sort > meson-testsuites
|
||||
- |
|
||||
cat <<EOF > ci-testsuites ;
|
||||
libinput-test-suite-touchpad
|
||||
libinput-test-suite-touchpad-tap
|
||||
libinput-test-suite-touchpad-buttons
|
||||
libinput-test-suite-tablet
|
||||
libinput-test-suite-gestures
|
||||
libinput-test-suite-device
|
||||
libinput-test-suite-path
|
||||
libinput-test-suite-udev
|
||||
libinput-test-suite-log
|
||||
libinput-test-suite-misc
|
||||
libinput-test-suite-quirks
|
||||
libinput-test-suite-keyboard
|
||||
libinput-test-suite-pad
|
||||
libinput-test-suite-switch
|
||||
libinput-test-suite-trackball
|
||||
libinput-test-suite-trackpoint
|
||||
libinput-test-suite-totem
|
||||
libinput-test-suite-touch
|
||||
libinput-test-suite-pointer
|
||||
EOF
|
||||
- sort -o ci-testsuites ci-testsuites
|
||||
- diff -u8 -w ci-testsuites meson-testsuites || (echo "Some test suites are not run in the CI" && false)
|
||||
only:
|
||||
changes:
|
||||
- "meson.build"
|
||||
- ".gitlab-ci.yml"
|
||||
|
||||
#
|
||||
# coverity run
|
||||
|
|
|
|||
|
|
@ -552,6 +552,29 @@ python-format@{{distro.name}}:{{version}}:
|
|||
- black $(git grep -l '^#!/usr/bin/env python3')
|
||||
- git diff --exit-code || (echo "Please run Black against all Python files" && false)
|
||||
|
||||
# A job to check we're actually running all test suites in the CI
|
||||
check-test-suites:
|
||||
extends:
|
||||
- .{{distro.name}}-build@template
|
||||
before_script:
|
||||
- dnf install -y jq
|
||||
script:
|
||||
- meson builddir
|
||||
- meson introspect builddir --test | jq -r '.[].name' | grep 'libinput-test-suite' | sort > meson-testsuites
|
||||
- |
|
||||
cat <<EOF > ci-testsuites ;
|
||||
{% for suite in test_suites %}
|
||||
{% for name in suite.suites %}
|
||||
libinput-test-suite-{{name}}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
EOF
|
||||
- sort -o ci-testsuites ci-testsuites
|
||||
- diff -u8 -w ci-testsuites meson-testsuites || (echo "Some test suites are not run in the CI" && false)
|
||||
only:
|
||||
changes:
|
||||
- "meson.build"
|
||||
- ".gitlab-ci.yml"
|
||||
{% endfor %}
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue