2010-04-02 10:55:34 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-12-01 21:32:05 -05:00
|
|
|
SCRIPTPATH=$( cd $(dirname $0) ; pwd -P )
|
|
|
|
TOP="$SCRIPTPATH/../.."
|
|
|
|
LIBS_DIR="$TOP/build/libs"
|
2010-04-02 10:55:34 -04:00
|
|
|
|
2014-12-01 21:53:16 -05:00
|
|
|
export LD_LIBRARY_PATH=$LIBS_DIR/audiographer:$LIBS_DIR/surfaces:$LIBS_DIR/surfaces/control_protocol:$LIBS_DIR/ardour:$LIBS_DIR/midi++2:$LIBS_DIR/pbd:$LIBS_DIR/gtkmm2ext:$LIBS_DIR/appleutility:$LIBS_DIR/evoral:$LIBS_DIR/evoral/src/libsmf:$LD_LIBRARY_PATH
|
2010-04-02 10:55:34 -04:00
|
|
|
|
2014-12-01 21:32:05 -05:00
|
|
|
export PBD_TEST_PATH=$TOP/libs/pbd/test
|
2010-04-02 10:55:34 -04:00
|
|
|
|
2014-12-01 21:32:05 -05:00
|
|
|
cd $LIBS_DIR/pbd
|
2010-04-02 10:55:34 -04:00
|
|
|
|
|
|
|
if [ "$1" == "--debug" ]
|
|
|
|
then
|
2014-12-01 21:32:05 -05:00
|
|
|
gdb ./run-tests
|
2011-03-04 12:35:10 -05:00
|
|
|
elif [ "$1" == "--valgrind" ]
|
|
|
|
then
|
2014-12-01 21:32:05 -05:00
|
|
|
valgrind --tool="memcheck" ./run-tests
|
2010-04-02 10:55:34 -04:00
|
|
|
else
|
2014-12-01 21:32:05 -05:00
|
|
|
./run-tests
|
2010-04-02 10:55:34 -04:00
|
|
|
fi
|