5 export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH
6 export DCPOMATIC_LINUX_SHARE_PREFIX=`pwd`
7 if [ "$1" == "--debug" ]; then
9 gdb --args build/test/unit-tests --catch_system_errors=no $*
10 elif [ "$1" == "--backtrace" ]; then
12 gdb -batch -ex "run" -ex "thread apply all bt" --args build/test/unit-tests --catch_system_errors=no $*
13 elif [ "$1" == "--valgrind" ]; then
15 valgrind --tool="memcheck" --leak-check=full build/test/unit-tests $*
16 elif [ "$1" == "--callgrind" ]; then
18 valgrind --tool="callgrind" build/test/unit-tests $*
19 elif [ "$1" == "--quiet" ]; then
21 build/test/unit-tests --catch_system_errors=no $*
23 build/test/unit-tests --catch_system_errors=no --log_level=test_suite $*
24 # build/test/unit-tests --catch_system_errors=no $*