projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Summary] Adding informative message to failed file copy exception in Session::save_as.
[ardour.git]
/
libs
/
ardour
/
run-tests.sh
diff --git
a/libs/ardour/run-tests.sh
b/libs/ardour/run-tests.sh
index e894fecb63d145e5b0ab607958375258baf8f311..cf98211753733e4b46035b62ccd3f7aa12b89b8c 100755
(executable)
--- a/
libs/ardour/run-tests.sh
+++ b/
libs/ardour/run-tests.sh
@@
-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" ]; then
if [ "$1" == "--single" ] || [ "$2" == "--single" ]; then
if [ "$1" == "--single" ]; then
@@
-12,7
+15,7
@@
if [ "$1" == "--single" ] || [ "$2" == "--single" ]; then
else
TESTS='test_*'
fi
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
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
done
else
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