- echo ""
- echo "-------------------------------------------"
- echo "Running tests for $1..."
- echo "-------------------------------------------"
- echo ""
- $2 $LIBS_DIR/$1/run-tests
+ 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