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
|
for test in $(find ./ -type f -name '*_tests' -executable); do
|
||||||
export LLVM_PROFILE_FILE="./coverage/$(basename "$(dirname "$test")").profraw";
|
export LLVM_PROFILE_FILE="./coverage/$(basename "$(dirname "$test")").profraw";
|
||||||
echo ${LLVM_PROFILE_FILE} >> ./coverage/list;
|
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"
|
"$test"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,14 @@ cmake .. \
|
||||||
&& cmake --build . -j `nproc`
|
&& cmake --build . -j `nproc`
|
||||||
|
|
||||||
for test in $(find ./ -type f -name '*_tests' -executable); do
|
for test in $(find ./ -type f -name '*_tests' -executable); do
|
||||||
echo "Running $test"
|
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
|
done
|
||||||
|
|
|
@ -22,12 +22,11 @@ cmake .. \
|
||||||
&& cmake --build . -j `nproc`
|
&& cmake --build . -j `nproc`
|
||||||
|
|
||||||
for test in $(find ./ -type f -name '*_tests' -executable); do
|
for test in $(find ./ -type f -name '*_tests' -executable); do
|
||||||
echo "Running $test"
|
echo "Running $test"
|
||||||
|
valgrind \
|
||||||
valgrind \
|
--leak-check=full \
|
||||||
--leak-check=full \
|
--show-leak-kinds=all \
|
||||||
--show-leak-kinds=all \
|
--track-origins=yes \
|
||||||
--track-origins=yes \
|
--verbose \
|
||||||
--verbose \
|
--error-exitcode=255 ${test} || exit 1
|
||||||
--error-exitcode=255 ${test} || exit 1
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue