summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-02-12 13:05:57 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-02-12 15:24:15 +1000
commitd0d2994254069bae1c5d3f99689530b2a760b872 (patch)
tree44bbf05331a8694c47ea1948b46370c63909c0dd /.gitlab-ci
parentd3115f48757c29150cbdd7a82d1e071b592bee7a (diff)
downloadlibinput-d0d2994254069bae1c5d3f99689530b2a760b872.tar.gz
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>
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/ci.template23
1 files changed, 23 insertions, 0 deletions
diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template
index 058d7053..52e603ec 100644
--- a/.gitlab-ci/ci.template
+++ b/.gitlab-ci/ci.template
@@ -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 %}
#