Commit | Line | Data |
---|---|---|
e3fa263d DG |
1 | #!/bin/bash |
2 | ||
69c0b621 | 3 | tests=( lttng/run-kernel-tests.sh lttng/run-ust-global-tests.sh ) |
e3fa263d DG |
4 | exit_code=0 |
5 | ||
6 | function start_tests () | |
7 | { | |
8 | for bin in ${tests[@]}; | |
9 | do | |
8e0dbb65 | 10 | ./$bin |
e3fa263d DG |
11 | # Test must return 0 to pass. |
12 | if [ $? -ne 0 ]; then | |
13 | exit_code=1 | |
14 | break | |
15 | fi | |
16 | done | |
17 | } | |
18 | ||
e3fa263d DG |
19 | start_tests |
20 | ||
e3fa263d | 21 | exit $exit_code |