diff options
Diffstat (limited to '.gitlab/scripts/run-tests.sh')
-rwxr-xr-x | .gitlab/scripts/run-tests.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.gitlab/scripts/run-tests.sh b/.gitlab/scripts/run-tests.sh new file mode 100755 index 000000000..1212d7cda --- /dev/null +++ b/.gitlab/scripts/run-tests.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +set +x +set +e + +srcdir=$( pwd ) +builddir=$1 +backend=$2 + +meson test -C ${builddir} + +# Store the exit code for the CI run, but always +# generate the reports +exit_code=$? + +cd ${builddir} + +${srcdir}/.gitlab/scripts/meson-junit-report.py \ + --project-name=gdk-pixbuf \ + --job-id="${CI_JOB_NAME}" \ + --output=report-${CI_JOB_NAME}.xml \ + meson-logs/testlog.json + +exit $exit_code |