]>
git.saurik.com Git - apt.git/blob - test/integration/run-tests
5 DIR
=$(readlink -f $(dirname $0))
6 if [ "$1" = "-q" ]; then
8 elif [ "$1" = "-v" ]; then
12 if expr match
"$(readlink -f /proc/$$/fd/1)" '/dev/pts/[0-9]\+' > /dev
/null
; then
16 elif [ -z "${MSGLEVEL}" ]; then
20 if [ -z "$MSGLEVEL" ]; then
24 for testcase
in $(run-parts --list $DIR | grep '/test-'); do
25 if [ "$MSGLEVEL" -le 2 ]; then
26 echo -n "${CTEST}Testcase ${CHIGH}$(basename ${testcase})${CRESET}: "
28 echo "${CTEST}Run Testcase ${CHIGH}$(basename ${testcase})${CRESET}"
30 if ! ${testcase}; then
32 echo "$(basename $testcase) ... FAIL"
34 if [ "$MSGLEVEL" -le 2 ]; then
39 echo "failures: $FAIL"
40 # ensure we don't overflow
41 exit $((FAIL <= 255 ? FAIL : 255))