X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=run%2Ftests;h=aa143e0d68f8d9911af76768426667dcd85293dc;hb=5892c7e3bd9f9ef2e6d7d0c73433cf33b11684cf;hp=d1317e0001850bce28fc4a1e801b828e79bc9e7d;hpb=b498722efc903900e264ac820bea08b6a99db3c8;p=dcpomatic.git diff --git a/run/tests b/run/tests index d1317e000..aa143e0d6 100755 --- a/run/tests +++ b/run/tests @@ -1,13 +1,22 @@ #!/bin/bash +# +# 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" == "--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 --log_level=test_suite $* build/test/unit-tests --catch_system_errors=no $* fi -