Vorbis Quality Config GUI
[ardour.git] / gtk2_ardour / artest
index 24d07785bc9697d163649d3d0e78abb39251f210..e7603b89bfdbb9689e045adba6b6d8b316d760ee 100755 (executable)
@@ -10,17 +10,23 @@ LIBS_DIR=$TOP/build/libs
 ALLGOOD=yes
 
 run_tests () {
-  echo ""
-  echo "-------------------------------------------"
-  echo "Running tests for $1..."
-  echo "-------------------------------------------"
-  echo ""
-  $2 $LIBS_DIR/$1/run-tests || ALLGOOD=no
+       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