Fix code syntax
[lttng-tools.git] / tests / lttng / run-ust-global-tests.sh
CommitLineData
69c0b621
DG
1#!/bin/bash
2
3SESSIOND_BIN="lttng-sessiond"
d3e8f6bb
DG
4TESTDIR=$(dirname $0)/..
5
6source $TESTDIR/utils.sh
69c0b621
DG
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 ./$bin $tmpdir
17 # Test must return 0 to pass.
18 if [ $? -ne 0 ]; then
19 exit_code=1
20 break
21 fi
69c0b621 22 done
d3e8f6bb
DG
23
24 # Cleaning up
25 rm -rf $tmpdir
69c0b621
DG
26}
27
28echo -e "\n-------------------------------------------"
d3e8f6bb 29echo -e "UST tracer - Global domain (LTTNG_DOMAIN_UST)"
69c0b621
DG
30echo -e "---------------------------------------------"
31
69c0b621
DG
32PID_SESSIOND=`pidof lt-$SESSIOND_BIN`
33
34# Simply wait for the session daemon bootstrap
35sleep 1
36
37start_tests
38
69c0b621 39exit $exit_code
This page took 0.03372 seconds and 4 git commands to generate.