summaryrefslogtreecommitdiff
path: root/.gitlab-ci/build-with-coverage.sh
blob: ed867986d2b08793d8a76dcfd8d6a987300e2cc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -eux -o pipefail

export CFLAGS="-coverage -ftest-coverage -fprofile-arcs"

export CAIRO_TEST_IGNORE_image_argb32=$(tr '\n' ',' < .gitlab-ci/ignore-image-argb32.txt)
export CAIRO_TEST_IGNORE_image_rgb24=$(tr '\n' ',' < .gitlab-ci/ignore-image-rgb24.txt)
export CAIRO_TEST_IGNORE_image16_rgb24=$(tr '\n' ',' < .gitlab-ci/ignore-image16-rgb24.txt)
export CAIRO_TEST_TARGET=image,image16

meson setup --buildtype=debug _build .
meson compile -C _build

export srcdir=../../test
cd _build/test
xvfb-run ./cairo-test-suite