X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Frun-tests.sh;h=cf98211753733e4b46035b62ccd3f7aa12b89b8c;hb=9bf40bde3aed831791108bfccc4b1e10b071afdc;hp=fc7d68a8a56b1d4e4f6bbc85ab8bdf0ba4457f1d;hpb=d9862364be5cdbc1f5ec0c3e5709f8c4f7a2f2f0;p=ardour.git diff --git a/libs/ardour/run-tests.sh b/libs/ardour/run-tests.sh index fc7d68a8a5..cf98211753 100755 --- a/libs/ardour/run-tests.sh +++ b/libs/ardour/run-tests.sh @@ -3,6 +3,10 @@ # Run libardour test suite. # +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 TESTS="test_*$2*" @@ -11,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 @@ -24,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