diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-06-26 17:23:09 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2019-09-02 14:16:33 +0100 |
commit | 197eff3fc8c79fae20be353801f79de9a52ce387 (patch) | |
tree | cd7d20099ade69b10c6631f3dfec77e73a38f213 /.gitlab-ci | |
parent | 8d19b95bd85ecc82fccbf1248e6f333f0caeb1b4 (diff) | |
download | glib-197eff3fc8c79fae20be353801f79de9a52ce387.tar.gz |
ci: Add valgrind memcheck support on Fedora
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
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/run-tests.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/.gitlab-ci/run-tests.sh b/.gitlab-ci/run-tests.sh index ca02816f9..539726e9a 100755 --- a/.gitlab-ci/run-tests.sh +++ b/.gitlab-ci/run-tests.sh @@ -2,10 +2,21 @@ 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 + --no-suite flaky \ + "$@" exit_code=$? @@ -13,6 +24,6 @@ python3 .gitlab-ci/meson-junit-report.py \ --project-name=glib \ --job-id "${CI_JOB_NAME}" \ --output "_build/${CI_JOB_NAME}-report.xml" \ - _build/meson-logs/testlog.json + "${log_file}" exit $exit_code |