diff options
author | Haru <haru@dotalux.com> | 2019-03-11 00:24:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 00:24:11 +0100 |
commit | 69831adf32d57f4a47e27e965df03b7230238e0d (patch) | |
tree | 17b04bf674c6829b02767750c9e39db99e8c7f82 /tools | |
parent | c9bab971082b3dbd059391a699b9e7d3eb25835b (diff) | |
parent | 5915d9d3d265ceac522b26511246af2ce23fad37 (diff) | |
download | hercules-69831adf32d57f4a47e27e965df03b7230238e0d.tar.gz hercules-69831adf32d57f4a47e27e965df03b7230238e0d.tar.bz2 hercules-69831adf32d57f4a47e27e965df03b7230238e0d.tar.xz hercules-69831adf32d57f4a47e27e965df03b7230238e0d.zip |
Merge pull request #2385 from 4144/travis
Add gcc versions and core dumps into travis
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/ci/travis.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/ci/travis.sh b/tools/ci/travis.sh index fa7d5be93..22f523bdf 100755 --- a/tools/ci/travis.sh +++ b/tools/ci/travis.sh @@ -47,7 +47,8 @@ function aborterror { function run_server { echo "Running: $1 --run-once $2" - $1 --run-once $2 2>runlog.txt + rm -rf core* || true + CRASH_PLEASE=1 $1 --run-once $2 2>runlog.txt export errcode=$? export teststr=$(head -c 10000 runlog.txt) if [[ -n "${teststr}" ]]; then @@ -59,12 +60,17 @@ function run_server { fi if [ ${errcode} -ne 0 ]; then echo "server $1 terminated with exit code ${errcode}" + COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1) + if [[ -f "$COREFILE" ]]; then + gdb -c "$COREFILE" $1 -ex "thread apply all bt" -ex "set pagination 0" -batch + fi aborterror "Test failed" fi } function run_test { echo "Running: test_$1" + sysctl -w kernel.core_pattern=core || true ./test_$1 2>runlog.txt export errcode=$? export teststr=$(head -c 10000 runlog.txt) |