add plural forms for pt to gtk2_ardour/po/pt.po
[ardour.git] / gtk2_ardour / artest
index c4a79ab249656c280df1570d4ea929d1f9c49312..24d07785bc9697d163649d3d0e78abb39251f210 100755 (executable)
@@ -1,21 +1,21 @@
 #!/bin/sh
 
-REL_TOP=`dirname "$0"`/..
-TOP=`realpath $REL_TOP`
+cd "`dirname \"$0\"`"
 
+TOP=..
 . $TOP/build/gtk2_ardour/ardev_common_waf.sh
 
 LIBS_DIR=$TOP/build/libs
 
+ALLGOOD=yes
+
 run_tests () {
   echo ""
   echo "-------------------------------------------"
   echo "Running tests for $1..."
   echo "-------------------------------------------"
   echo ""
-  cd $LIBS_DIR/$1
-  $2 ./run-tests
-  cd -
+  $2 $LIBS_DIR/$1/run-tests || ALLGOOD=no
   echo ""
 }
 
@@ -29,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