replace ::cast_dynamic() with relevant ActionManager::get_*_action() calls
[ardour.git] / gtk2_ardour / artest
index 5e6432d634b9e83ead57087681ee2d7d372467d1..e7603b89bfdbb9689e045adba6b6d8b316d760ee 100755 (executable)
@@ -7,18 +7,26 @@ TOP=..
 
 LIBS_DIR=$TOP/build/libs
 
+ALLGOOD=yes
+
 run_tests () {
-  echo ""
-  echo "-------------------------------------------"
-  echo "Running tests for $1..."
-  echo "-------------------------------------------"
-  echo ""
-  $2 $LIBS_DIR/$1/run-tests
+       echo ""
+       echo "-------------------------------------------"
+       RUN=run-tests
+       if test -n "$2"; then
+               RUN=$2
+               echo "Running test $2 of $1..."
+       else
+               echo "Running tests for $1..."
+       fi
+       echo "-------------------------------------------"
+       echo ""
+  $3 $LIBS_DIR/$1/$RUN || ALLGOOD=no
   echo ""
 }
 
 if [ $# -gt 0 ]; then
-       run_tests $1 $2
+       run_tests $1 $2 $3
        exit
 fi
 
@@ -27,3 +35,11 @@ run_tests midi++2
 run_tests evoral
 run_tests pbd
 run_tests ardour
+
+if test "$ALLGOOD" != "yes"; then
+       echo ""
+       echo ""
+       echo " *** SOME TEST(s) FAILED ***"
+       echo ""
+       echo ""
+fi