Tidy a few things up.
[ardour.git] / libs / ardour / run-profiling.sh
1 #!/bin/bash
2 #
3 # Run libardour profiling tests.
4 #
5
6 if [ ! -f './tempo.cc' ]; then
7     echo "This script must be run from within the libs/ardour directory";
8     exit 1;
9 fi
10
11 srcdir=`pwd`
12 cd ../../build
13
14 libs='libs'
15
16 export LD_LIBRARY_PATH=$libs/audiographer:$libs/vamp-sdk:$libs/surfaces:$libs/surfaces/control_protocol:$libs/ardour:$libs/midi++2:$libs/pbd:$libs/rubberband:$libs/soundtouch:$libs/gtkmm2ext:$libs/appleutility:$libs/taglib:$libs/evoral:$libs/evoral/src/libsmf:$libs/timecode:/usr/local/lib:/usr/local/lib64:$LD_LIBRARY_PATH
17
18 export ARDOUR_PANNER_PATH=$libs/panners/2in2out:$libs/panners/1in2out:$libs/panners/vbap
19
20 export LD_PRELOAD=/home/carl/src/libfakejack/libjack.so
21 session='32tracks'
22
23 if [ "$1" == "--debug" ]; then
24         gdb --args ./libs/ardour/run-profiling $session
25 elif [ "$1" == "--valgrind" ]; then
26         valgrind ./libs/ardour/run-profiling $session
27 elif [ "$1" == "--callgrind" ]; then
28         valgrind --tool=callgrind ./libs/ardour/run-profiling $session
29 else
30         ./libs/ardour/run-profiling $session
31 fi