summaryrefslogtreecommitdiff
path: root/.gitlab/scripts/run-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab/scripts/run-tests.sh')
-rwxr-xr-x.gitlab/scripts/run-tests.sh24
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