65a8ad159bd105719e43b765c372949e0a11e1d5
[lttng-tools.git] / tests / tools / health / runall
1 #!/bin/bash
2
3 DIR=$(dirname $0)
4
5 tests=( $DIR/health_thread_exit $DIR/health_thread_stall )
6 exit_code=0
7
8 function start_tests ()
9 {
10 for bin in ${tests[@]};
11 do
12 if [ ! -e $bin ]; then
13 echo -e "$bin not found, passing"
14 continue
15 fi
16
17 ./$bin
18 # Test must return 0 to pass.
19 if [ $? -ne 0 ]; then
20 exit_code=1
21 break
22 fi
23 done
24 }
25
26 if [ "$(id -u)" != "0" ]; then
27 echo -e "Need root for health test."
28 exit 0
29 fi
30
31 start_tests
32
33 exit $exit_code
This page took 0.041089 seconds and 3 git commands to generate.