qutebrowser/scripts/dev/ci/travis_backtrace.sh

23 lines
538 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
py34-cov)
exe=/usr/bin/python3.4
2017-03-05 19:34:37 +01:00
full=full
2017-03-05 18:30:14 +01:00
;;
py3*-pyqt*)
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-03-05 19:34:37 +01:00
find . -name *.core -o -name core -exec gdb --batch --quiet -ex "thread apply all bt $full" "$exe" {} \;