summaryrefslogtreecommitdiff
path: root/test/integration/run-tests
blob: 7314e6b6113a120d8d2b820539c18cab4838d875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -e

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
	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