| 1 | #!/bin/bash |
| 2 | |
| 3 | DIR=$(dirname $0) |
| 4 | |
| 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 | |
| 10 | exit_code=0 |
| 11 | |
| 12 | function start_tests () |
| 13 | { |
| 14 | for bin in ${tests[@]}; |
| 15 | do |
| 16 | if [ ! -e $bin ]; then |
| 17 | echo -e "$bin not found, passing" |
| 18 | continue |
| 19 | fi |
| 20 | |
| 21 | ./$bin |
| 22 | # Test must return 0 to pass. |
| 23 | if [ $? -ne 0 ]; then |
| 24 | exit_code=1 |
| 25 | break |
| 26 | fi |
| 27 | done |
| 28 | } |
| 29 | |
| 30 | start_tests |
| 31 | |
| 32 | exit $exit_code |