Pass parameters to tests so that we can use --log_level and --run_test etc.
[dcpomatic.git] / run / tests
1 #!/bin/bash
2
3 export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH
4 if [ "$1" == "--debug" ]; then
5     shift;
6     gdb --args build/test/unit-tests --catch_system_errors=no $*
7 elif [ "$1" == "--valgrind" ]; then
8     shift;
9     valgrind --tool="memcheck" --leak-check=full build/test/unit-tests $*
10 else
11     build/test/unit-tests --catch_system_errors=no $*
12 fi
13