From 8720fdcebf653a372a29dd05cc119a188bb829a6 Mon Sep 17 00:00:00 2001 From: light7734 Date: Mon, 21 Jul 2025 18:56:20 +0330 Subject: [PATCH] ci: fix llvm-cov -ignore-filename-regex pattern --- modules/test/CMakeLists.txt | 2 +- modules/test/private/{test.tests.cpp => test.test.cpp} | 0 modules/time/CMakeLists.txt | 2 +- modules/time/private/{timer.tests.cpp => timer.test.cpp} | 0 tools/ci/amd64/clang/coverage.sh | 3 ++- 5 files changed, 4 insertions(+), 3 deletions(-) rename modules/test/private/{test.tests.cpp => test.test.cpp} (100%) rename modules/time/private/{timer.tests.cpp => timer.test.cpp} (100%) diff --git a/modules/test/CMakeLists.txt b/modules/test/CMakeLists.txt index c4ea0a8..cc9bb62 100644 --- a/modules/test/CMakeLists.txt +++ b/modules/test/CMakeLists.txt @@ -1,2 +1,2 @@ add_library_module(test test.cpp entrypoint.cpp) -add_test_module(test test.tests.cpp) +add_test_module(test test.test.cpp) diff --git a/modules/test/private/test.tests.cpp b/modules/test/private/test.test.cpp similarity index 100% rename from modules/test/private/test.tests.cpp rename to modules/test/private/test.test.cpp diff --git a/modules/time/CMakeLists.txt b/modules/time/CMakeLists.txt index 834895b..0cfb0a1 100644 --- a/modules/time/CMakeLists.txt +++ b/modules/time/CMakeLists.txt @@ -1,3 +1,3 @@ add_library_module(time timer.cpp) -add_test_module(time timer.tests.cpp) +add_test_module(time timer.test.cpp) diff --git a/modules/time/private/timer.tests.cpp b/modules/time/private/timer.test.cpp similarity index 100% rename from modules/time/private/timer.tests.cpp rename to modules/time/private/timer.test.cpp diff --git a/tools/ci/amd64/clang/coverage.sh b/tools/ci/amd64/clang/coverage.sh index d2fce76..2b2aff9 100755 --- a/tools/ci/amd64/clang/coverage.sh +++ b/tools/ci/amd64/clang/coverage.sh @@ -29,7 +29,8 @@ LLVM_COV_SHOW=$(llvm-cov show \ -instr-profile='./build/coverage/merged.profdata' \ $(find ./build -type f -name '*_tests' -executable -exec printf -- '-object %s ' {} \;) \ $(find ./build -type f -name '*\.a' -exec printf -- '-object %s ' {} \;) \ - -ignore-filename-regex="*.test.cpp|./external*" + -ignore-filename-regex='\.test\.cpp$' \ + -ignore-filename-regex='./external/' ) echo "${LLVM_COV_SHOW}" > './build/coverage/coverage.txt'