X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=run%2Ftests;h=77db5d52bbfd15662596a2364fdd00e18fe6c38b;hb=70b923d244255cc1425f0ade4b3d280e07da7038;hp=b9af0f5e715a45b0839a24aeacf4ddc27cdf515b;hpb=6a83317e65555954dd33c7b1c62e3a317ff37bd2;p=dcpomatic.git diff --git a/run/tests b/run/tests index b9af0f5e7..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 $* +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 $* 3>&1 1>&2 2>&3 | grep -v "No accelerated colorspace conversion" | grep -v "full chroma interpolation" + build/test/unit-tests --catch_system_errors=no --log_level=test_suite $* +# build/test/unit-tests --catch_system_errors=no $* fi -