test_bt.sh 516 B

12345678910111213
  1. #!/bin/sh
  2. # Test backtrace functionality.
  3. exitcode=0
  4. export ASAN_OPTIONS="handle_segv=0:allow_user_segv_handler=1"
  5. "${builddir:-.}/src/test/test-bt-cl" backtraces || exit $?
  6. "${builddir:-.}/src/test/test-bt-cl" assert 2>&1 | "${PYTHON:-python}" "${abs_top_srcdir:-.}/src/test/bt_test.py" || exitcode="$?"
  7. "${builddir:-.}/src/test/test-bt-cl" crash 2>&1 | "${PYTHON:-python}" "${abs_top_srcdir:-.}/src/test/bt_test.py" || exitcode="$?"
  8. "${builddir:-.}/src/test/test-bt-cl" none || exitcode="$?"
  9. exit ${exitcode}