Merge branch '2.0' of git.carlh.net:git/dcpomatic into 2.0
[dcpomatic.git] / run / tests
1 #!/bin/bash
2 #
3 # e.g. --run_tests=foo
4
5 export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH
6 export DCPOMATIC_LINUX_SHARE_PREFIX=`pwd`
7 if [ "$1" == "--debug" ]; then
8     shift;
9     gdb --args build/test/unit-tests --catch_system_errors=no $*
10 elif [ "$1" == "--valgrind" ]; then
11     shift;
12     valgrind --tool="memcheck" --leak-check=full build/test/unit-tests $*
13 else
14     build/test/unit-tests --catch_system_errors=no $*
15 fi
16