Fix tests when lttng-ust is disabled
[lttng-tools.git] / tests / tools / runall.sh
CommitLineData
e3fa263d
DG
1#!/bin/bash
2
355f483d
DG
3DIR=$(dirname $0)
4
5tests=( $DIR/test_kernel_data_trace $DIR/test_sessions $DIR/test_ust_data_trace )
e3fa263d
DG
6exit_code=0
7
8function start_tests ()
9{
10 for bin in ${tests[@]};
11 do
8acbe07d
DG
12 if [ ! -e $bin ]; then
13 echo -e "$bin not found, passing"
14 continue
15 fi
16
8e0dbb65 17 ./$bin
e3fa263d
DG
18 # Test must return 0 to pass.
19 if [ $? -ne 0 ]; then
20 exit_code=1
21 break
22 fi
23 done
24}
25
e3fa263d
DG
26start_tests
27
e3fa263d 28exit $exit_code
This page took 0.034275 seconds and 4 git commands to generate.