summaryrefslogtreecommitdiff
path: root/.ci/run-tests.sh
blob: 70c0ca0650cdb642508c4ad90fcfd5caa22b998d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -x

set -e

SRCDIR=`pwd`
cd /home/user
cp -r $SRCDIR ./
cd "${CI_PROJECT_NAME}"

# Workaround for https://github.com/gcovr/gcovr/issues/710: replace gcovr
# with a wrapper that adds --gcov-ignore-parse-errors
export PATH="$(pwd)/.ci:$PATH"

meson setup --localstatedir /var -Db_coverage=true _build
# FIXME until we can figure out how to depend on mocklibc being built for the tests
meson compile -C _build
VALGRIND=1 meson test -C _build -v --print-errorlogs --no-stdsplit --timeout-multiplier 100
ninja -C _build coverage