summaryrefslogtreecommitdiff
path: root/libs/ardour/run-tests.sh
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2014-11-29 20:42:21 +0700
committerTim Mayberry <mojofunk@gmail.com>2014-12-03 17:31:03 +0700
commitb9567b6d461661700c60c63dbc35f37612a15a8e (patch)
treecd53b2020f6aa1caaaf1a829081c9b00c2fd7a64 /libs/ardour/run-tests.sh
parent7a3c54f031bc0ead921d02db99065db1c101a5a8 (diff)
Use ardev_common.sh to setup environment for running libardour tests
Diffstat (limited to 'libs/ardour/run-tests.sh')
-rwxr-xr-xlibs/ardour/run-tests.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/libs/ardour/run-tests.sh b/libs/ardour/run-tests.sh
index e894fecb63..cf98211753 100755
--- a/libs/ardour/run-tests.sh
+++ b/libs/ardour/run-tests.sh
@@ -2,7 +2,10 @@
#
# 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" ]; then
@@ -12,7 +15,7 @@ if [ "$1" == "--single" ] || [ "$2" == "--single" ]; then
else
TESTS='test_*'
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
echo "Running $test_program..."
if [ "$1" == "--debug" ]; then
@@ -25,11 +28,11 @@ if [ "$1" == "--single" ] || [ "$2" == "--single" ]; then
done
else
if [ "$1" == "--debug" ]; then
- gdb ./libs/ardour/run-tests
+ gdb $ARDOUR_LIBS_DIR/run-tests
elif [ "$1" == "--valgrind" ]; then
- valgrind ./libs/ardour/run-tests
+ valgrind $ARDOUR_LIBS_DIR/run-tests
else
- ./libs/ardour/run-tests $*
+ $ARDOUR_LIBS_DIR/run-tests $*
fi
fi