Use ardev_common.sh to setup environment for running libardour tests
This commit is contained in:
parent
7a3c54f031
commit
b9567b6d46
@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. `dirname "$0"`/../build/gtk2_ardour/ardev_common_waf.sh
|
TOP=`dirname "$0"`/..
|
||||||
|
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
||||||
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
||||||
export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
|
export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
|
||||||
exec valgrind \
|
exec valgrind \
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. `dirname "$0"`/../build/gtk2_ardour/ardev_common_waf.sh
|
TOP=`dirname "$0"`/..
|
||||||
|
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
||||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH
|
LD_LIBRARY_PATH=$LD_LIBRARY_PATH
|
||||||
export ARDOUR_INSIDE_GDB=1
|
export ARDOUR_INSIDE_GDB=1
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. `dirname "$0"`/../build/gtk2_ardour/ardev_common_waf.sh
|
TOP=`dirname "$0"`/..
|
||||||
|
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
||||||
export UBUNTU_MENUPROXY=""
|
export UBUNTU_MENUPROXY=""
|
||||||
exec $TOP/$EXECUTABLE "$@"
|
exec $TOP/$EXECUTABLE "$@"
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
if [ -z "$TOP" ]; then
|
[ -z $TOP ] && "ardev_common.sh: TOP var must be set" && exit 1
|
||||||
TOP=`dirname "$0"`/..
|
|
||||||
fi
|
|
||||||
|
|
||||||
#export G_DEBUG=fatal_criticals
|
#export G_DEBUG=fatal_criticals
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. `dirname "$0"`/../build/gtk2_ardour/ardev_common_waf.sh
|
TOP=`dirname "$0"`/..
|
||||||
|
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
||||||
exec ldd $TOP/$EXECUTABLE
|
exec ldd $TOP/$EXECUTABLE
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. `dirname "$0"`/../build/gtk2_ardour/ardev_common_waf.sh
|
|
||||||
|
TOP=`dirname "$0"`/..
|
||||||
|
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
||||||
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
||||||
export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
|
export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
|
||||||
exec valgrind \
|
exec valgrind \
|
||||||
|
@ -7,7 +7,8 @@
|
|||||||
# see http://valgrind.org/docs/manual/cl-manual.html and
|
# see http://valgrind.org/docs/manual/cl-manual.html and
|
||||||
# http://log.fundamental-code.com/2013/09/07/profiling-realtime-code
|
# http://log.fundamental-code.com/2013/09/07/profiling-realtime-code
|
||||||
|
|
||||||
. `dirname "$0"`/../build/gtk2_ardour/ardev_common_waf.sh
|
TOP=`dirname "$0"`/..
|
||||||
|
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
||||||
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
||||||
export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
|
export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
REL_TOP=`dirname "$0"`/..
|
TOP=`dirname "$0"`/..
|
||||||
TOP=`realpath $REL_TOP`
|
|
||||||
|
|
||||||
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
||||||
|
|
||||||
LIBS_DIR=$TOP/build/libs
|
LIBS_DIR=$TOP/build/libs
|
||||||
@ -13,9 +11,7 @@ run_tests () {
|
|||||||
echo "Running tests for $1..."
|
echo "Running tests for $1..."
|
||||||
echo "-------------------------------------------"
|
echo "-------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
cd $LIBS_DIR/$1
|
$2 $LIBS_DIR/$1/run-tests
|
||||||
$2 ./run-tests
|
|
||||||
cd -
|
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,8 @@ VALGRIND_OPTIONS="$VALGRIND_OPTIONS --error-limit=no"
|
|||||||
#VALGRIND_OPTIONS="$VALGRIND_OPTIONS --log-file=/tmp/ardour-%p.log"
|
#VALGRIND_OPTIONS="$VALGRIND_OPTIONS --log-file=/tmp/ardour-%p.log"
|
||||||
#VALGRIND_OPTIONS="$VALGRIND_OPTIONS --gen-suppressions=all"
|
#VALGRIND_OPTIONS="$VALGRIND_OPTIONS --gen-suppressions=all"
|
||||||
|
|
||||||
. `dirname "$0"`/../build/gtk2_ardour/ardev_common_waf.sh
|
TOP=`dirname "$0"`/..
|
||||||
|
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
||||||
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
||||||
export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
|
export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
|
||||||
exec valgrind --tool=memcheck \
|
exec valgrind --tool=memcheck \
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. `dirname "$0"`/../build/gtk2_ardour/ardev_common_waf.sh
|
TOP=`dirname "$0"`/..
|
||||||
|
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
||||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH
|
LD_LIBRARY_PATH=$LD_LIBRARY_PATH
|
||||||
export ARDOUR_INSIDE_GDB=1
|
export ARDOUR_INSIDE_GDB=1
|
||||||
|
|
||||||
|
@ -2,7 +2,10 @@
|
|||||||
#
|
#
|
||||||
# Run libardour test suite.
|
# Run libardour test suite.
|
||||||
#
|
#
|
||||||
. test-env.sh
|
|
||||||
|
TOP=`dirname "$0"`/../..
|
||||||
|
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
||||||
|
ARDOUR_LIBS_DIR=$TOP/build/libs/ardour
|
||||||
|
|
||||||
if [ "$1" == "--single" ] || [ "$2" == "--single" ]; then
|
if [ "$1" == "--single" ] || [ "$2" == "--single" ]; then
|
||||||
if [ "$1" == "--single" ]; then
|
if [ "$1" == "--single" ]; then
|
||||||
@ -12,7 +15,7 @@ if [ "$1" == "--single" ] || [ "$2" == "--single" ]; then
|
|||||||
else
|
else
|
||||||
TESTS='test_*'
|
TESTS='test_*'
|
||||||
fi
|
fi
|
||||||
for test_program in `find libs/ardour -name "$TESTS" -type f -perm /u+x`;
|
for test_program in `find $ARDOUR_LIBS_DIR -name "$TESTS" -type f -perm /u+x`;
|
||||||
do
|
do
|
||||||
echo "Running $test_program..."
|
echo "Running $test_program..."
|
||||||
if [ "$1" == "--debug" ]; then
|
if [ "$1" == "--debug" ]; then
|
||||||
@ -25,11 +28,11 @@ if [ "$1" == "--single" ] || [ "$2" == "--single" ]; then
|
|||||||
done
|
done
|
||||||
else
|
else
|
||||||
if [ "$1" == "--debug" ]; then
|
if [ "$1" == "--debug" ]; then
|
||||||
gdb ./libs/ardour/run-tests
|
gdb $ARDOUR_LIBS_DIR/run-tests
|
||||||
elif [ "$1" == "--valgrind" ]; then
|
elif [ "$1" == "--valgrind" ]; then
|
||||||
valgrind ./libs/ardour/run-tests
|
valgrind $ARDOUR_LIBS_DIR/run-tests
|
||||||
else
|
else
|
||||||
./libs/ardour/run-tests $*
|
$ARDOUR_LIBS_DIR/run-tests $*
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Common libardour test env vars.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ ! -f './tempo.cc' ]; then
|
|
||||||
echo "This script must be run from within the libs/ardour directory";
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
srcdir=`pwd`
|
|
||||||
export ARDOUR_TEST_PATH=$srcdir/test/data
|
|
||||||
cd ../../build
|
|
||||||
|
|
||||||
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/appleutility:$libs/taglib:$libs/evoral:$libs/evoral/src/libsmf:$libs/timecode:$libs/libltc:/usr/local/lib:/usr/local/lib64:$LD_LIBRARY_PATH
|
|
||||||
|
|
||||||
export ARDOUR_CONFIG_PATH=$top:$top/gtk2_ardour:$libs/..:$libs/../gtk2_ardour
|
|
||||||
export ARDOUR_PANNER_PATH=$libs/panners/2in2out:$libs/panners/1in2out:$libs/panners/vbap
|
|
||||||
export ARDOUR_SURFACES_PATH=$libs/surfaces/osc:$libs/surfaces/generic_midi:$libs/surfaces/tranzport:$libs/surfaces/powermate:$libs/surfaces/mackie
|
|
||||||
export ARDOUR_MCP_PATH="../mcp"
|
|
||||||
export ARDOUR_DLL_PATH=$libs
|
|
||||||
export ARDOUR_DATA_PATH=$top/gtk2_ardour:$top/build/gtk2_ardour:.
|
|
||||||
export ARDOUR_BACKEND_PATH=$libs/backends/jack
|
|
@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
. `dirname "$0"`/../build/gtk2_ardour/ardev_common_waf.sh
|
TOP=`dirname "$0"`/..
|
||||||
|
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
|
||||||
export LD_LIBRARY_PATH=$libs/../gtk2_ardour:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=$libs/../gtk2_ardour:$LD_LIBRARY_PATH
|
||||||
exec wine $libs/../gtk2_ardour/ardour-$ARDOURVERSION-vst.exe.so "$@"
|
exec wine $libs/../gtk2_ardour/ardour-$ARDOURVERSION-vst.exe.so "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user