Tests: Rename the tools tests runners to test_<test name>
[lttng-tools.git] / tests / regression / tools / health / runall
CommitLineData
55009a22
CB
1#!/bin/bash
2
3DIR=$(dirname $0)
4
ef834360 5tests=( $DIR/test_thread_exit $DIR/test_thread_stall $DIR/test_tp_fail)
55009a22
CB
6exit_code=0
7
8function 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
8c861e6c
DG
26if [ "$(id -u)" != "0" ]; then
27 echo -e "Need root for health test."
28 exit 0
29fi
30
55009a22
CB
31start_tests
32
33exit $exit_code
This page took 0.027585 seconds and 5 git commands to generate.