3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4 source $DIR/environment
6 exe=build/src/tools/dcpomatic2_disk_writer
10 if [ "$1" == "--debug" ]; then
13 elif [ "$1" == "--valgrind" ]; then
15 valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes --show-leak-kinds=all --leak-check=full $exe $*
16 elif [ "$1" == "--callgrind" ]; then
18 valgrind --tool="callgrind" $exe $*
19 elif [ "$1" == "--massif" ]; then
21 valgrind --tool="massif" $exe $*
22 elif [ "$1" == "--i18n" ]; then
24 LANGUAGE=de_DE.UTF8 LANG=de_DE.UTF8 LC_ALL=de_DE.UTF8 $exe "$*"
25 elif [ "$1" == "--perf" ]; then
28 elif [ "$1" == "--scaled" ]; then
30 ~/src/run_scaled/run_scaled --sleep=5 --scale=0.5 $exe $*