Commit | Line | Data |
---|---|---|
1 | #!/bin/bash | |
2 | ||
3 | DIR=$(dirname $0) | |
4 | ||
5 | tests=( $DIR/streaming/runall $DIR/health/runall $DIR/filtering/runall ) | |
6 | ||
7 | exit_code=0 | |
8 | ||
9 | function start_tests () | |
10 | { | |
11 | for bin in ${tests[@]}; | |
12 | do | |
13 | if [ ! -e $bin ]; then | |
14 | echo -e "$bin not found, passing" | |
15 | continue | |
16 | fi | |
17 | ||
18 | ./$bin | |
19 | # Test must return 0 to pass. | |
20 | if [ $? -ne 0 ]; then | |
21 | exit_code=1 | |
22 | break | |
23 | fi | |
24 | done | |
25 | } | |
26 | ||
27 | start_tests | |
28 | ||
29 | exit $exit_code |