X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/1b8ba3ba050f01db27f1ddc0e5b280b2fccd9fb9..8f3853baea6191788da6befb437e92ba246c86a3:/test/integration/run-tests diff --git a/test/integration/run-tests b/test/integration/run-tests index cb74f21e7..7314e6b61 100755 --- a/test/integration/run-tests +++ b/test/integration/run-tests @@ -1,8 +1,20 @@ #!/bin/sh set -e -local DIR=$(readlink -f $(dirname $0)) +DIR=$(readlink -f $(dirname $0)) +if [ "$1" = "-q" ]; then + export MSGLEVEL=2 +elif [ "$1" = "-v" ]; then + export MSGLEVEL=4 +fi for testcase in $(run-parts --list $DIR | grep '/test-'); do - echo "\033[1;32mRun Testcase \033[1;35m$(basename ${testcase})\033[0m" + if [ "$1" = "-q" ]; then + echo -n "\033[1;32mRun Testcase \033[1;35m$(basename ${testcase})\033[0m" + else + echo "\033[1;32mRun Testcase \033[1;35m$(basename ${testcase})\033[0m" + fi ${testcase} + if [ "$1" = "-q" ]; then + echo + fi done