]> git.saurik.com Git - apt.git/blame - test/integration/run-tests
* cmdline/apt-get.cc:
[apt.git] / test / integration / run-tests
CommitLineData
8d876415
DK
1#!/bin/sh
2set -e
3
9962ae93 4DIR=$(readlink -f $(dirname $0))
39cc8228
DK
5if [ "$1" = "-q" ]; then
6 export MSGLEVEL=2
7elif [ "$1" = "-v" ]; then
18331adf 8 export MSGLEVEL=4
39cc8228 9fi
8d876415 10for testcase in $(run-parts --list $DIR | grep '/test-'); do
39cc8228
DK
11 if [ "$1" = "-q" ]; then
12 echo -n "\033[1;32mRun Testcase \033[1;35m$(basename ${testcase})\033[0m"
13 else
14 echo "\033[1;32mRun Testcase \033[1;35m$(basename ${testcase})\033[0m"
15 fi
8d876415 16 ${testcase}
39cc8228
DK
17 if [ "$1" = "-q" ]; then
18 echo
19 fi
8d876415 20done