]> git.saurik.com Git - apt.git/blobdiff - test/integration/run-tests
move sha512,256 into apt-pkg/sha2.{cc,h}, move gifford implementation to sha2_interna...
[apt.git] / test / integration / run-tests
index cb74f21e77c0aac250565ab6808130022d933fdb..7314e6b6113a120d8d2b820539c18cab4838d875 100755 (executable)
@@ -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