This commit is contained in:
parent
b804360884
commit
9cbebaef06
5 changed files with 16 additions and 16 deletions
|
@ -17,12 +17,12 @@ cmake . \
|
||||||
-DENABLE_LLVM_COVERAGE=ON \
|
-DENABLE_LLVM_COVERAGE=ON \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_CXX_FLAGS="-std=c++23 -stdlib=libc++ -g -fno-omit-frame-pointer" \
|
-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/
|
mkdir -p ./build/coverage/
|
||||||
for test in $(find ./ -type f -name '*_tests' -executable); do
|
for test in $(find ./build -type f -name '*_tests' -executable); do
|
||||||
export LLVM_PROFILE_FILE="./coverage/$(basename "$(dirname "$test")").profraw";
|
export LLVM_PROFILE_FILE="./build/coverage/$(basename "$(dirname "$test")").profraw";
|
||||||
echo ${LLVM_PROFILE_FILE} >> ./coverage/list;
|
echo ${LLVM_PROFILE_FILE} >> ./build/coverage/list;
|
||||||
|
|
||||||
gdb \
|
gdb \
|
||||||
--return-child-result \
|
--return-child-result \
|
||||||
|
@ -36,12 +36,12 @@ for test in $(find ./ -type f -name '*_tests' -executable); do
|
||||||
done
|
done
|
||||||
|
|
||||||
llvm-profdata merge --input-files './coverage/list' -o "./coverage/merged.profdata"
|
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 \
|
LLVM_COV_SHOW=$(llvm-cov show \
|
||||||
-instr-profile='./coverage/merged.profdata' \
|
-instr-profile='./coverage/merged.profdata' \
|
||||||
$(find ./ -type f -name '*_tests' -executable -exec printf -- '-object %s ' {} \;) \
|
$(find ./build -type f -name '*_tests' -executable -exec printf -- '-object %s ' {} \;) \
|
||||||
$(find ./ -type f -name '*\.a' -exec printf -- '-object %s ' {} \;) \
|
$(find ./build -type f -name '*\.a' -exec printf -- '-object %s ' {} \;) \
|
||||||
-ignore-filename-regex='\.test\.cpp$' \
|
-ignore-filename-regex='\.test\.cpp$' \
|
||||||
-ignore-filename-regex='\.fuzz\.cpp$'
|
-ignore-filename-regex='\.fuzz\.cpp$'
|
||||||
)
|
)
|
||||||
|
|
|
@ -28,9 +28,9 @@ cmake . \
|
||||||
-lc++ \
|
-lc++ \
|
||||||
-lc++abi \
|
-lc++abi \
|
||||||
-Wl,-rpath,/libcxx_lsan/lib" \
|
-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"
|
echo "Running $test"
|
||||||
"$test"
|
"$test"
|
||||||
done
|
done
|
||||||
|
|
|
@ -30,9 +30,9 @@ cmake . \
|
||||||
-lc++ \
|
-lc++ \
|
||||||
-lc++abi \
|
-lc++abi \
|
||||||
-Wl,-rpath,/libcxx_msan/lib" \
|
-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"
|
echo "Running $test"
|
||||||
"$test"
|
"$test"
|
||||||
done
|
done
|
||||||
|
|
|
@ -17,9 +17,9 @@ cmake . \
|
||||||
-DENABLE_UNIT_TESTS=ON \
|
-DENABLE_UNIT_TESTS=ON \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_CXX_FLAGS="-std=c++23 -g -fno-omit-frame-pointer" \
|
-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"
|
echo "Running $test"
|
||||||
gdb \
|
gdb \
|
||||||
--return-child-result \
|
--return-child-result \
|
||||||
|
|
|
@ -19,9 +19,9 @@ cmake . \
|
||||||
-DENABLE_UNIT_TESTS=ON \
|
-DENABLE_UNIT_TESTS=ON \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_CXX_FLAGS="-std=c++23 -g -fno-omit-frame-pointer" \
|
-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"
|
echo "Running $test"
|
||||||
valgrind \
|
valgrind \
|
||||||
--leak-check=full \
|
--leak-check=full \
|
||||||
|
|
Loading…
Add table
Reference in a new issue