Fix UST tests if lttng-ust is not available
[lttng-tools.git] / tests / lttng / run-ust-global-tests.sh
... / ...
CommitLineData
1#!/bin/bash
2
3SESSIOND_BIN="lttng-sessiond"
4TESTDIR=$(dirname $0)/..
5
6source $TESTDIR/utils.sh
7
8tmpdir=`mktemp -d`
9tests=( ust_global_event_basic ust_global_all_events_basic )
10exit_code=0
11
12function 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 $tmpdir
22 # Test must return 0 to pass.
23 if [ $? -ne 0 ]; then
24 exit_code=1
25 break
26 fi
27 done
28
29 # Cleaning up
30 rm -rf $tmpdir
31}
32
33echo -e "\n-------------------------------------------"
34echo -e "UST tracer - Global domain (LTTNG_DOMAIN_UST)"
35echo -e "---------------------------------------------"
36
37PID_SESSIOND=`pidof lt-$SESSIOND_BIN`
38
39# Simply wait for the session daemon bootstrap
40sleep 1
41
42start_tests
43
44exit $exit_code
This page took 0.022313 seconds and 4 git commands to generate.