]>
Commit | Line | Data |
---|---|---|
8d876415 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
9962ae93 | 4 | DIR=$(readlink -f $(dirname $0)) |
39cc8228 DK |
5 | if [ "$1" = "-q" ]; then |
6 | export MSGLEVEL=2 | |
7 | elif [ "$1" = "-v" ]; then | |
8 | export MSGLEVEL=5 | |
9 | fi | |
8d876415 | 10 | for 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 | 20 | done |