fix crash when copy'ing latent plugins
[ardour.git] / libs / canvas / build-and-run-manual-test.sh
1 #!/bin/bash
2 #
3
4 if [ ! -f './canvas.cc' ]; then
5     echo "This script must be run from within the libs/canvas directory";
6     exit 1;
7 fi
8
9 if [ "$1" == "--debug" ]; then
10     debug=1
11     name=$2
12 else
13     debug=0
14     name=$1
15 fi
16
17 waft --targets libcanvas-manual-test-$name
18 if [ "$?" != 0 ]; then
19   exit
20 fi
21
22 srcdir=`pwd`
23 cd ../../build/default
24
25 libs='libs'
26
27 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:$libs/canvas:$LD_LIBRARY_PATH
28
29 if [ "$debug" == "1" ]; then
30     gdb ./libs/canvas/test/$name
31 else
32     ./libs/canvas/test/$name
33 fi
34
35