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