qutebrowser/scripts/dev/ci/travis_backtrace.sh

19 lines
474 B
Bash
Raw Normal View History

2017-03-05 18:30:14 +01:00
#!/bin/bash
2017-03-05 17:29:22 +01:00
#
# Find all possible core files under current directory. Attempt
# to determine exe using file(1) and dump stack trace with gdb.
#
2017-03-05 18:30:14 +01:00
case $TESTENV in
py3*-pyqt*)
2017-12-02 19:31:52 +01:00
exe=$(readlink -f ".tox/$TESTENV/bin/python")
2017-03-05 19:34:37 +01:00
full=
2017-03-05 18:30:14 +01:00
;;
*)
echo "Skipping coredump analysis in testenv $TESTENV!"
exit 0
;;
esac
2017-12-02 19:38:02 +01:00
find . \( -name "*.core" -o -name core \) -exec gdb --batch --quiet -ex "thread apply all bt $full" "$exe" {} \;