| 1 | #!/bin/bash |
| 2 | |
| 3 | DIR=$(dirname $0) |
| 4 | |
| 5 | tests=( $DIR/run-ust-global-tests.sh $DIR/nprocesses/run \ |
| 6 | $DIR/high-throughput/run $DIR/before-after/run \ |
| 7 | $DIR/multi-session/run ) |
| 8 | |
| 9 | # $DIR/low-throughput/run --> DEACTIVATED. |
| 10 | # Use only for release. This test last 20 minutes |
| 11 | |
| 12 | exit_code=0 |
| 13 | |
| 14 | function start_tests () |
| 15 | { |
| 16 | for bin in ${tests[@]}; |
| 17 | do |
| 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 |