ci: fix paths
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
light7734 2025-10-08 09:02:15 +03:30
parent b804360884
commit 9cbebaef06
Signed by: light7734
GPG key ID: 8C30176798F1A6BA
5 changed files with 16 additions and 16 deletions

View file

@ -17,12 +17,12 @@ cmake . \
-DENABLE_LLVM_COVERAGE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="-std=c++23 -stdlib=libc++ -g -fno-omit-frame-pointer" \
&& cmake --build . -j `nproc`
&& cmake --build ./build -j `nproc`
mkdir -p ./coverage/
for test in $(find ./ -type f -name '*_tests' -executable); do
export LLVM_PROFILE_FILE="./coverage/$(basename "$(dirname "$test")").profraw";
echo ${LLVM_PROFILE_FILE} >> ./coverage/list;
mkdir -p ./build/coverage/
for test in $(find ./build -type f -name '*_tests' -executable); do
export LLVM_PROFILE_FILE="./build/coverage/$(basename "$(dirname "$test")").profraw";
echo ${LLVM_PROFILE_FILE} >> ./build/coverage/list;
gdb \
--return-child-result \
@ -36,12 +36,12 @@ for test in $(find ./ -type f -name '*_tests' -executable); do
done
llvm-profdata merge --input-files './coverage/list' -o "./coverage/merged.profdata"
find ./modules -type f -name "*.profraw" -exec rm -fv {} +
find ./build/modules -type f -name "*.profraw" -exec rm -fv {} +
LLVM_COV_SHOW=$(llvm-cov show \
-instr-profile='./coverage/merged.profdata' \
$(find ./ -type f -name '*_tests' -executable -exec printf -- '-object %s ' {} \;) \
$(find ./ -type f -name '*\.a' -exec printf -- '-object %s ' {} \;) \
$(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$' \
-ignore-filename-regex='\.fuzz\.cpp$'
)

View file

@ -28,9 +28,9 @@ cmake . \
-lc++ \
-lc++abi \
-Wl,-rpath,/libcxx_lsan/lib" \
&& cmake --build . -j`nproc`
&& cmake --build ./build -j`nproc`
for test in $(find ./ -type f -name '*_tests' -executable); do
for test in $(find ./build -type f -name '*_tests' -executable); do
echo "Running $test"
"$test"
done

View file

@ -30,9 +30,9 @@ cmake . \
-lc++ \
-lc++abi \
-Wl,-rpath,/libcxx_msan/lib" \
&& cmake --build . -j`nproc`
&& cmake --build ./build -j`nproc`
for test in $(find ./ -type f -name '*_tests' -executable); do
for test in $(find ./build -type f -name '*_tests' -executable); do
echo "Running $test"
"$test"
done

View file

@ -17,9 +17,9 @@ cmake . \
-DENABLE_UNIT_TESTS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="-std=c++23 -g -fno-omit-frame-pointer" \
&& cmake --build . -j `nproc`
&& cmake --build ./build -j `nproc`
for test in $(find ./ -type f -name '*_tests' -executable); do
for test in $(find ./build -type f -name '*_tests' -executable); do
echo "Running $test"
gdb \
--return-child-result \

View file

@ -19,9 +19,9 @@ cmake . \
-DENABLE_UNIT_TESTS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="-std=c++23 -g -fno-omit-frame-pointer" \
&& cmake --build . -j `nproc`
&& cmake --build ./build -j `nproc`
for test in $(find ./ -type f -name '*_tests' -executable); do
for test in $(find ./build -type f -name '*_tests' -executable); do
echo "Running $test"
valgrind \
--leak-check=full \