diff options
-rwxr-xr-x | .ci/gcovr | 3 | ||||
-rwxr-xr-x | .ci/run-tests.sh | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/.ci/gcovr b/.ci/gcovr new file mode 100755 index 0000000..253e918 --- /dev/null +++ b/.ci/gcovr @@ -0,0 +1,3 @@ +#!/bin/sh +# Workaround for https://github.com/gcovr/gcovr/issues/710 +exec /usr/bin/gcovr --gcov-ignore-parse-errors "$@" diff --git a/.ci/run-tests.sh b/.ci/run-tests.sh index 93d616b..70c0ca0 100755 --- a/.ci/run-tests.sh +++ b/.ci/run-tests.sh @@ -6,6 +6,11 @@ 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 |