2020-01-29 09:35:10 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-01-29 13:36:23 +00:00
|
|
|
set +x
|
|
|
|
set +e
|
2020-01-29 09:35:10 +00:00
|
|
|
|
2020-01-29 13:36:23 +00:00
|
|
|
srcdir=$( pwd )
|
2020-01-29 09:35:10 +00:00
|
|
|
builddir=$1
|
|
|
|
|
2020-01-29 13:36:23 +00:00
|
|
|
export GDK_BACKEND=x11
|
2020-01-29 09:35:10 +00:00
|
|
|
xvfb-run -a -s "-screen 0 1024x768x24" \
|
2020-01-29 13:36:23 +00:00
|
|
|
meson test -C ${builddir} \
|
|
|
|
--print-errorlogs \
|
2020-01-29 11:31:00 +00:00
|
|
|
--suite=gtk \
|
2020-01-29 09:35:10 +00:00
|
|
|
--no-suite=gtk:a11y
|
2020-01-29 13:36:23 +00:00
|
|
|
|
|
|
|
# Store the exit code for the CI run, but always
|
|
|
|
# generate the reports
|
|
|
|
exit_code=$?
|
|
|
|
|
2020-02-12 18:03:48 +00:00
|
|
|
cd ${builddir}
|
|
|
|
|
2020-01-29 13:36:23 +00:00
|
|
|
$srcdir/.gitlab-ci/meson-junit-report.py \
|
|
|
|
--project-name=gtk \
|
|
|
|
--job-id="${CI_JOB_NAME}" \
|
2020-02-12 18:03:48 +00:00
|
|
|
--output=report.xml \
|
|
|
|
meson-logs/testlog.json
|
2020-01-29 13:36:23 +00:00
|
|
|
$srcdir/.gitlab-ci/meson-html-report.py \
|
|
|
|
--project-name=gtk \
|
|
|
|
--job-id="${CI_JOB_NAME}" \
|
2020-02-12 18:03:48 +00:00
|
|
|
--reftest-output-dir="testsuite/reftests/output" \
|
|
|
|
--output=report.html \
|
|
|
|
meson-logs/testlog.json
|
2020-01-29 13:36:23 +00:00
|
|
|
|
|
|
|
exit $exit_code
|