Fix: update file listing for licensing
[lttng-tools.git] / tests / ust / run-ust-global-tests.sh
CommitLineData
69c0b621
DG
1#!/bin/bash
2
3SESSIOND_BIN="lttng-sessiond"
355f483d
DG
4CURDIR=$(dirname $0)
5TESTDIR=$CURDIR/..
d3e8f6bb
DG
6
7source $TESTDIR/utils.sh
69c0b621
DG
8
9tmpdir=`mktemp -d`
a62e3ec7 10tests=( $CURDIR/ust_global_event_basic $CURDIR/ust_global_event_wildcard )
69c0b621
DG
11exit_code=0
12
13function start_tests ()
14{
15 for bin in ${tests[@]};
16 do
ec8f26de
DG
17 if [ ! -e $bin ]; then
18 echo -e "$bin not found, passing"
19 continue
20 fi
21
fb3268e3 22 start_lttng_sessiond
355f483d 23
69c0b621
DG
24 ./$bin $tmpdir
25 # Test must return 0 to pass.
26 if [ $? -ne 0 ]; then
27 exit_code=1
fb3268e3 28 stop_lttng_sessiond
69c0b621
DG
29 break
30 fi
fb3268e3 31 stop_lttng_sessiond
69c0b621 32 done
d3e8f6bb
DG
33
34 # Cleaning up
35 rm -rf $tmpdir
69c0b621
DG
36}
37
c38b5107
CB
38TEST_DESC="UST tracer - Global domain (LTTNG_DOMAIN_UST)"
39
40print_test_banner "$TEST_DESC"
69c0b621 41
69c0b621
DG
42start_tests
43
69c0b621 44exit $exit_code
This page took 0.025503 seconds and 4 git commands to generate.