ci: add full gdb backtrace to unit tests
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
light7734 2025-09-24 10:07:52 +03:30
parent c2f2abedd7
commit 6e838afbab
Signed by: light7734
GPG key ID: 8C30176798F1A6BA
3 changed files with 26 additions and 10 deletions

View file

@ -23,6 +23,15 @@ 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;
gdb \
--return-child-result \
-ex='set confirm off' \
-ex='set pagination off' \
-ex='run' \
-ex='bt full' \
-ex='quit' \
-q \
"$test"
done

View file

@ -19,6 +19,14 @@ cmake .. \
&& cmake --build . -j `nproc`
for test in $(find ./ -type f -name '*_tests' -executable); do
echo "Running $test"
gdb --return-child-result -q -ex='set confirm off' -ex='set pagination off' -ex='run' -ex='bt full' -ex='quit' "$test"
echo "Running $test"
gdb \
--return-child-result \
-ex='set confirm off' \
-ex='set pagination off' \
-ex='run' \
-ex='bt full' \
-ex='quit' \
-q \
"$test"
done

View file

@ -22,12 +22,11 @@ cmake .. \
&& cmake --build . -j `nproc`
for test in $(find ./ -type f -name '*_tests' -executable); do
echo "Running $test"
valgrind \
--leak-check=full \
--show-leak-kinds=all \
--track-origins=yes \
--verbose \
--error-exitcode=255 ${test} || exit 1
echo "Running $test"
valgrind \
--leak-check=full \
--show-leak-kinds=all \
--track-origins=yes \
--verbose \
--error-exitcode=255 ${test} || exit 1
done