add a common test-failed indicator

This commit is contained in:
Robin Gareus 2015-02-13 16:10:00 +01:00
parent cb3961d953
commit 193a276e22
1 changed files with 11 additions and 1 deletions

View File

@ -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