summaryrefslogtreecommitdiff
path: root/.config/qutebrowser/scripts/dev/ci/travis_backtrace.sh
blob: 227dde8a8980fe094bde381d39633c8672efbbc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#
#  Find all possible core files under current directory. Attempt
#  to determine exe using file(1) and dump stack trace with gdb.
#

case $TESTENV in
    py3*-pyqt*)
        exe=$(readlink -f ".tox/$TESTENV/bin/python")
        full=
        ;;
    *)
        echo "Skipping coredump analysis in testenv $TESTENV!"
        exit 0
        ;;
esac

find . \( -name "*.core" -o -name core \) -exec gdb --batch --quiet -ex "thread apply all bt $full" "$exe" {} \;