3 # Run libardour test suite.
6 TOP=`dirname "$0"`/../..
7 . $TOP/build/gtk2_ardour/ardev_common_waf.sh
8 ARDOUR_LIBS_DIR=$TOP/build/libs/ardour
10 if [ "$1" == "--single" ] || [ "$2" == "--single" ]; then
11 if [ "$1" == "--single" ]; then
13 elif [ "$2" == "--single" ]; then
18 for test_program in `find $ARDOUR_LIBS_DIR -name "$TESTS" -type f -perm /u+x`;
20 echo "Running $test_program..."
21 if [ "$1" == "--debug" ]; then
23 elif [ "$1" == "--valgrind" ]; then
24 valgrind ./"$test_program"
30 if [ "$1" == "--debug" ]; then
31 gdb $ARDOUR_LIBS_DIR/run-tests
32 elif [ "$1" == "--valgrind" ]; then
33 valgrind $ARDOUR_LIBS_DIR/run-tests
35 $ARDOUR_LIBS_DIR/run-tests $*