mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
197eff3fc8
Add a separate CI job which runs memcheck on the unit tests. This is done as a separate job from the main build, since we don’t want it to interact with code coverage at all. Currently, failure of this job is ignored. Issue #333 will eventually fix that. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #487
30 lines
504 B
Bash
Executable File
30 lines
504 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set +e
|
|
|
|
case "$1" in
|
|
--log-file)
|
|
log_file="$2"
|
|
shift
|
|
shift
|
|
;;
|
|
*)
|
|
log_file="_build/meson-logs/testlog.json"
|
|
esac
|
|
|
|
meson test \
|
|
-C _build \
|
|
--timeout-multiplier ${MESON_TEST_TIMEOUT_MULTIPLIER} \
|
|
--no-suite flaky \
|
|
"$@"
|
|
|
|
exit_code=$?
|
|
|
|
python3 .gitlab-ci/meson-junit-report.py \
|
|
--project-name=glib \
|
|
--job-id "${CI_JOB_NAME}" \
|
|
--output "_build/${CI_JOB_NAME}-report.xml" \
|
|
"${log_file}"
|
|
|
|
exit $exit_code
|