align stem-export (raw track outputs (with and w/p processing)
[ardour.git] / libs / ardour / run-profiling.sh
1 #!/bin/bash
2 #
3 # Run libardour profiling tests.
4 #
5
6 if [ "$1" == "" ]; then
7    echo "Syntax: run-profiling.sh [flag] <test> [<args>]"
8    exit 1;
9 fi
10
11 . test-env.sh
12
13 export LD_PRELOAD=/home/carl/src/libfakejack/libjack.so
14 # session='32tracks'
15
16 p=$1
17 if [ "$p" == "--debug" -o "$p" == "--valgrind" -o "$p" == "--callgrind" ]; then
18   f=$p
19   p=$2
20   shift 1
21 fi
22 shift 1
23
24 if [ "$f" == "--debug" ]; then
25         gdb --args ./libs/ardour/$p $*
26 elif [ "$f" == "--valgrind" ]; then
27         valgrind ./libs/ardour/$p $*
28 elif [ "$f" == "--callgrind" ]; then
29         valgrind --tool=callgrind ./libs/ardour/$p $*
30 else
31         ./libs/ardour/$p $*
32 fi