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