X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fartest;h=e7603b89bfdbb9689e045adba6b6d8b316d760ee;hb=b68b4d10a2f5a9d630b6ad22674f5fdf39a67aae;hp=c4a79ab249656c280df1570d4ea929d1f9c49312;hpb=302c93df04789860cb7a7a9f098788a12659fa9d;p=ardour.git diff --git a/gtk2_ardour/artest b/gtk2_ardour/artest index c4a79ab249..e7603b89bf 100755 --- a/gtk2_ardour/artest +++ b/gtk2_ardour/artest @@ -1,26 +1,32 @@ #!/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 - + 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 @@ -29,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