mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Make pbd test script consistant with other test scripts
remove running script from pwd limitation
This commit is contained in:
parent
4fe6bf3530
commit
01a17f296f
1 changed files with 9 additions and 12 deletions
|
|
@ -1,24 +1,21 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ ! -f './id.cc' ]; then
|
SCRIPTPATH=$( cd $(dirname $0) ; pwd -P )
|
||||||
echo "This script must be run from within the libs/pbd directory";
|
TOP="$SCRIPTPATH/../.."
|
||||||
exit 1;
|
LIBS_DIR="$TOP/build/libs"
|
||||||
fi
|
|
||||||
|
|
||||||
srcdir=`pwd`
|
export LD_LIBRARY_PATH=$LIBS_DIR/audiographer:$LIBS_DIR/vamp-sdk:$LIBS_DIR/surfaces:$LIBS_DIR/surfaces/control_protocol:$LIBS_DIR/ardour:$LIBS_DIR/midi++2:$LIBS_DIR/pbd:$LIBS_DIR/rubberband:$LIBS_DIR/soundtouch:$LIBS_DIR/gtkmm2ext:$LIBS_DIR/sigc++2:$LIBS_DIR/glibmm2:$LIBS_DIR/gtkmm2/atk:$LIBS_DIR/gtkmm2/pango:$LIBS_DIR/gtkmm2/gdk:$LIBS_DIR/gtkmm2/gtk:$LIBS_DIR/libgnomecanvasmm:$LIBS_DIR/libsndfile:$LIBS_DIR/appleutility:$LIBS_DIR/cairomm:$LIBS_DIR/taglib:$LIBS_DIR/evoral:$LIBS_DIR/evoral/src/libsmf:$LD_LIBRARY_PATH
|
||||||
cd ../../build
|
|
||||||
export PBD_TEST_PATH=$srcdir/test
|
|
||||||
|
|
||||||
libs='libs'
|
export PBD_TEST_PATH=$TOP/libs/pbd/test
|
||||||
|
|
||||||
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
|
cd $LIBS_DIR/pbd
|
||||||
|
|
||||||
if [ "$1" == "--debug" ]
|
if [ "$1" == "--debug" ]
|
||||||
then
|
then
|
||||||
gdb ./libs/pbd/run-tests
|
gdb ./run-tests
|
||||||
elif [ "$1" == "--valgrind" ]
|
elif [ "$1" == "--valgrind" ]
|
||||||
then
|
then
|
||||||
valgrind --tool="memcheck" ./libs/pbd/run-tests
|
valgrind --tool="memcheck" ./run-tests
|
||||||
else
|
else
|
||||||
./libs/pbd/run-tests
|
./run-tests
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue