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

@ -20,5 +20,13 @@ cmake .. \
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"
gdb \
--return-child-result \
-ex='set confirm off' \
-ex='set pagination off' \
-ex='run' \
-ex='bt full' \
-ex='quit' \
-q \
"$test"
done

View file

@ -23,7 +23,6 @@ cmake .. \
for test in $(find ./ -type f -name '*_tests' -executable); do
echo "Running $test"
valgrind \
--leak-check=full \
--show-leak-kinds=all \