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