1
0
Fork 0
mutter-performance-source/.gitlab-ci/run-tests.sh
Niels De Graef 3bc15ade04 ci: Generate a cover report for the test suite
Based on @ebassi's work from https://gitlab.gnome.org/GNOME/glib/merge_requests/769

This MR allows us to see the succeeded/failed tests each time the CI
pipeline is run.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/528
2020-10-15 10:18:44 +02:00

22 lines
478 B
Bash
Executable file

#!/usr/bin/bash
set +e
dconf update
mkdir -m 700 $XDG_RUNTIME_DIR
glib-compile-schemas $GSETTINGS_SCHEMA_DIR
dbus-run-session -- \
xvfb-run -s '+iglx -noreset' \
meson test -C build --no-rebuild -t 10 --wrap catchsegv
exit_code=$?
python3 .gitlab-ci/meson-junit-report.py \
--project-name=mutter \
--job-id "${CI_JOB_NAME}" \
--output "build/${CI_JOB_NAME}-report.xml" \
build/meson-logs/testlog-catchsegv.json
exit $exit_code