Change order of midi entries so a new backend will default to a working midi system.
[ardour.git] / gtk2_ardour / artest
index 5e6432d634b9e83ead57087681ee2d7d372467d1..24d07785bc9697d163649d3d0e78abb39251f210 100755 (executable)
@@ -7,13 +7,15 @@ 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
+  $2 $LIBS_DIR/$1/run-tests || ALLGOOD=no
   echo ""
 }
 
@@ -27,3 +29,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