diff options
author | Corentin Noël <corentin.noel@collabora.com> | 2023-09-18 09:12:46 +0200 |
---|---|---|
committer | Corentin Noël <corentin.noel@collabora.com> | 2023-09-18 09:13:10 +0200 |
commit | 9df42d25557974c4af35158dad89fc1d24a1c1c0 (patch) | |
tree | edadbdae74b0f770f7cd9c227a23050437e1855d | |
parent | bcca0c8393a59b7508522273af9066342e712dec (diff) |
ci: Add code coverage supporttintou/coverage
-rwxr-xr-x | .gitlab-ci/meson/build.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.gitlab-ci/meson/build.sh b/.gitlab-ci/meson/build.sh index 7d0f17f..4891263 100755 --- a/.gitlab-ci/meson/build.sh +++ b/.gitlab-ci/meson/build.sh @@ -59,6 +59,11 @@ esac RET=0 RESULTS_DIR=$(pwd)/results/${TEST_SUITE:-build} rm -rf _build +if [ -n "${TEST_SUITE}" ]; then + COVERAGE=-D b_coverage=true +else + COVERAGE= +fi meson setup _build --native-file=native.file \ --wrap-mode=${WRAP_DEBUG:-nofallback} \ @@ -70,11 +75,12 @@ meson setup _build --native-file=native.file \ -D cpp_args="$(echo -n $CPP_ARGS)" \ ${DRI_LOADERS} \ ${GALLIUM_ST} \ + ${COVERAGE} \ -D tests=true \ -D render-server=true \ -D render-server-worker=process \ -D venus=true \ - -Dtracing=${TRACING_BACKEND:-none} \ + -D tracing=${TRACING_BACKEND:-none} \ --fatal-meson-warnings \ ${EXTRA_OPTION} && \ pushd _build && \ @@ -91,6 +97,7 @@ if [ -n "${TEST_SUITE}" ]; then VRENDTEST_USE_EGL_SURFACELESS=1 meson test --num-processes ${FDO_CI_CONCURRENT:-4} || RET=$? mkdir -p ${RESULTS_DIR} mv -f meson-logs/testlog.txt ${RESULTS_DIR}/ + ninja coverage-html fi popd |