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