2010-04-02 10:55:34 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ ! -f './id.cc' ]; then
|
|
|
|
echo "This script must be run from within the libs/pbd directory";
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
|
|
|
srcdir=`pwd`
|
2012-04-01 10:29:26 -04:00
|
|
|
cd ../../build
|
2010-04-02 10:55:34 -04:00
|
|
|
|
|
|
|
libs='libs'
|
|
|
|
|
|
|
|
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/sigc++2:$libs/glibmm2:$libs/gtkmm2/atk:$libs/gtkmm2/pango:$libs/gtkmm2/gdk:$libs/gtkmm2/gtk:$libs/libgnomecanvasmm:$libs/libsndfile:$libs/appleutility:$libs/cairomm:$libs/taglib:$libs/evoral:$libs/evoral/src/libsmf:$LD_LIBRARY_PATH
|
|
|
|
|
|
|
|
if [ "$1" == "--debug" ]
|
|
|
|
then
|
|
|
|
gdb ./libs/pbd/run-tests
|
2011-03-04 12:35:10 -05:00
|
|
|
elif [ "$1" == "--valgrind" ]
|
|
|
|
then
|
|
|
|
valgrind --tool="memcheck" ./libs/pbd/run-tests
|
2010-04-02 10:55:34 -04:00
|
|
|
else
|
|
|
|
./libs/pbd/run-tests
|
|
|
|
fi
|