5231db08ca3ce2c23255e16a36cc1fb3c3f45390
[lttng-tools.git] / tests / tools / runall.sh
1 #!/bin/bash
2
3 DIR=$(dirname $0)
4
5 tests=( $DIR/test_kernel_data_trace $DIR/test_sessions $DIR/test_ust_data_trace )
6
7 # Disable for now until they all pass and the problem are fixed
8 # $DIR/streaming/runall
9
10 exit_code=0
11
12 function start_tests ()
13 {
14 for bin in ${tests[@]};
15 do
16 if [ ! -e $bin ]; then
17 echo -e "$bin not found, passing"
18 continue
19 fi
20
21 ./$bin
22 # Test must return 0 to pass.
23 if [ $? -ne 0 ]; then
24 exit_code=1
25 break
26 fi
27 done
28 }
29
30 start_tests
31
32 exit $exit_code
This page took 0.041648 seconds and 3 git commands to generate.