X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=run%2Ftests;h=77db5d52bbfd15662596a2364fdd00e18fe6c38b;hb=2233f5b77b379ab043edb00095b2e372fa3e1d8b;hp=9b94ada80452c305ee67d31cf9e4436f800005a0;hpb=1853a4a89d47e068c31d993dd4ecb8d83cedc884;p=dcpomatic.git diff --git a/run/tests b/run/tests index 9b94ada80..77db5d52b 100755 --- a/run/tests +++ b/run/tests @@ -3,13 +3,23 @@ # e.g. --run_tests=foo export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH +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 $* -else +elif [ "$1" == "--callgrind" ]; then + shift; + valgrind --tool="callgrind" build/test/unit-tests $* +elif [ "$1" == "--quiet" ]; then + shift; build/test/unit-tests --catch_system_errors=no $* +else + build/test/unit-tests --catch_system_errors=no --log_level=test_suite $* +# build/test/unit-tests --catch_system_errors=no $* fi -