summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-28 13:18:25 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-28 13:18:25 +0100
commit77c1f7b21d369433ae7fd7669e454d48b8ac2c0e (patch)
treeffce351f9d0eec44bc2d32af32fe9eb9db1a834a
parent97c1bc360f912d66d3fc0430b331214e4da79644 (diff)
Add new --backtrace option to tests script.
-rwxr-xr-xrun/tests3
1 files changed, 3 insertions, 0 deletions
diff --git a/run/tests b/run/tests
index 714733bcf..77db5d52b 100755
--- a/run/tests
+++ b/run/tests
@@ -7,6 +7,9 @@ export DCPOMATIC_LINUX_SHARE_PREFIX=`pwd`
if [ "$1" == "--debug" ]; then
shift;
gdb --args build/test/unit-tests --catch_system_errors=no $*
+elif [ "$1" == "--backtrace" ]; then
+ shift;
+ gdb -batch -ex "run" -ex "thread apply all bt" --args build/test/unit-tests --catch_system_errors=no $*
elif [ "$1" == "--valgrind" ]; then
shift;
valgrind --tool="memcheck" --leak-check=full build/test/unit-tests $*