ci: add full gdb backtrace to unit tests
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c2f2abedd7
commit
6e838afbab
3 changed files with 26 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue