]> git.saurik.com Git - apt.git/blob - test/integration/run-tests
* Implement EDSP in libapt-pkg so that all front-ends which
[apt.git] / test / integration / run-tests
1 #!/bin/sh
2 set -e
3
4 FAIL=0
5 DIR=$(readlink -f $(dirname $0))
6 if [ "$1" = "-q" ]; then
7 export MSGLEVEL=2
8 elif [ "$1" = "-v" ]; then
9 export MSGLEVEL=4
10 fi
11 for testcase in $(run-parts --list $DIR | grep '/test-'); do
12 if [ "$1" = "-q" ]; then
13 echo -n "\033[1;32mRun Testcase \033[1;35m$(basename ${testcase})\033[0m"
14 else
15 echo "\033[1;32mRun Testcase \033[1;35m$(basename ${testcase})\033[0m"
16 fi
17 if ! ${testcase}; then
18 FAIL=$((FAIL+1))
19 echo "$(basename $testcase) ... FAIL"
20 fi
21 if [ "$1" = "-q" ]; then
22 echo
23 fi
24 done
25
26 echo "failures: $FAIL"
27 exit $FAIL