aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/testsuite.sh
blob: 943c66e67e216931ba687fe280031449707b0446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

cd "$(dirname $0)"
. ../utils.sh

for d in */; do
    if [ -f $d/testsuite.sh ]; then
        travis_start "test" "$d" "$ANSI_CYAN"
        cd $d
        if ./testsuite.sh; then
            printf "${ANSI_GREEN}OK$ANSI_NOCOLOR\n"
        else
            printf "${ANSI_RED}FAILED!$ANSI_NOCOLOR\n"
            exit 1
        fi
        cd ..
        travis_finish "test"
    else
        printf "${ANSI_YELLOW}Skip $d (no testsuite.sh)$ANSI_NOCOLOR\n"
    fi
done

printf "${ANSI_GREEN}All tests are OK$ANSI_NOCOLOR\n"
exit 0