From 783e82cfa289a1e6803b77ea8dc1bdb420a6353b Mon Sep 17 00:00:00 2001 From: Jakub Sujak Date: Tue, 27 Aug 2024 11:55:27 +0100 Subject: [PATCH] Provide object directory to GCOV GCOV is incorrectly guessing the object directory when the project is built on runner A and executed on runner B. Fix this issue by overriding the search path for objects. Signed-off-by: Jakub Sujak --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 86673f4c..15a09373 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -229,7 +229,7 @@ test-linux-aarch64-cov: script: - ./build/kleidiai_test --gtest_output=xml:kleidiai_test_results.xml - mkdir -p build/coverage - - gcovr --gcov-executable="llvm-cov gcov" --exclude-unreachable-branches --exclude=build --exclude=test --exclude-lines-by-pattern=".*KAI_(?:ASSERT|ASSUME|ERROR).*" --exclude-branches-by-pattern=".*KAI_(?:ASSERT|ASSUME).*" --json=build/coverage/linux-aarch64.json -j --root . build + - gcovr --gcov-executable="llvm-cov gcov" --exclude-unreachable-branches --exclude=build --exclude=test --exclude-lines-by-pattern=".*KAI_(?:ASSERT|ASSUME|ERROR).*" --exclude-branches-by-pattern=".*KAI_(?:ASSERT|ASSUME).*" --json=build/coverage/linux-aarch64.json -j --root . build --gcov-object-directory build artifacts: expire_in: 1 day paths: @@ -315,7 +315,7 @@ test-linux-aarch64-cov-fvp: - e2cp linux-rootfs.img:"$PWD/artifacts.tar" . - tar xf artifacts.tar -C / - mkdir -p build/coverage - - gcovr --gcov-executable="llvm-cov gcov" --exclude-unreachable-branches --exclude=build --exclude=test --exclude-lines-by-pattern=".*KAI_(?:ASSERT|ASSUME|ERROR).*" --exclude-branches-by-pattern=".*KAI_(?:ASSERT|ASSUME).*" --json=build/coverage/linux-aarch64-fvp.json -j --root . build + - gcovr --gcov-executable="llvm-cov gcov" --exclude-unreachable-branches --exclude=build --exclude=test --exclude-lines-by-pattern=".*KAI_(?:ASSERT|ASSUME|ERROR).*" --exclude-branches-by-pattern=".*KAI_(?:ASSERT|ASSUME).*" --json=build/coverage/linux-aarch64-fvp.json -j --root . build --gcov-object-directory build artifacts: expire_in: 1 day paths: -- GitLab