2018-02-13 16:21:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2018-03-01 10:08:27 +00:00
|
|
|
srcdir=$(pwd)
|
|
|
|
|
2018-04-11 10:18:55 +00:00
|
|
|
mkdir -p _ccache
|
|
|
|
export CCACHE_BASEDIR="$(pwd)"
|
|
|
|
export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
|
|
|
|
|
|
|
|
ccache --zero-stats
|
|
|
|
ccache --show-stats
|
|
|
|
export CCACHE_DISABLE=true
|
2018-03-01 10:08:27 +00:00
|
|
|
meson \
|
|
|
|
-Dx11-backend=true \
|
|
|
|
-Dwayland-backend=true \
|
|
|
|
-Dbroadway-backend=true \
|
2021-04-01 16:08:19 +00:00
|
|
|
-Dvulkan=enabled \
|
2020-01-21 23:20:05 +00:00
|
|
|
-Dprofiler=true \
|
2019-04-17 16:53:53 +00:00
|
|
|
--werror \
|
2019-11-11 19:11:16 +00:00
|
|
|
${EXTRA_MESON_FLAGS:-} \
|
2018-03-01 10:08:27 +00:00
|
|
|
_build $srcdir
|
2018-04-11 10:18:55 +00:00
|
|
|
unset CCACHE_DISABLE
|
2018-03-01 10:08:27 +00:00
|
|
|
|
|
|
|
cd _build
|
|
|
|
|
2018-02-13 16:21:18 +00:00
|
|
|
ninja
|
2018-04-11 10:18:55 +00:00
|
|
|
ccache --show-stats
|
2018-02-17 10:55:40 +00:00
|
|
|
|
2019-04-05 18:29:58 +00:00
|
|
|
set +e
|
|
|
|
|
2018-02-17 10:55:40 +00:00
|
|
|
xvfb-run -a -s "-screen 0 1024x768x24" \
|
|
|
|
meson test \
|
2019-03-26 15:37:22 +00:00
|
|
|
--timeout-multiplier 2 \
|
2018-02-17 10:55:40 +00:00
|
|
|
--print-errorlogs \
|
2019-02-08 10:49:24 +00:00
|
|
|
--suite=gtk \
|
|
|
|
--no-suite=gtk:a11y
|
2019-04-05 18:29:58 +00:00
|
|
|
|
|
|
|
# Save the exit code
|
|
|
|
exit_code=$?
|
|
|
|
|
2019-04-13 13:11:30 +00:00
|
|
|
# We always want to run the report generators
|
2019-04-05 18:29:58 +00:00
|
|
|
$srcdir/.gitlab-ci/meson-junit-report.py \
|
|
|
|
--project-name=gtk \
|
|
|
|
--job-id="${CI_JOB_NAME}" \
|
|
|
|
--output=report.xml \
|
|
|
|
meson-logs/testlog.json
|
|
|
|
|
2019-04-13 13:11:30 +00:00
|
|
|
$srcdir/.gitlab-ci/meson-html-report.py \
|
|
|
|
--project-name=GTK \
|
|
|
|
--job-id="${CI_JOB_NAME}" \
|
2019-04-14 19:29:14 +00:00
|
|
|
--reftest-output-dir="testsuite/reftests/output" \
|
2019-04-13 13:11:30 +00:00
|
|
|
--output=report.html \
|
|
|
|
meson-logs/testlog.json
|
|
|
|
|
2019-04-05 18:29:58 +00:00
|
|
|
exit $exit_code
|