Commit | Line | Data |
---|---|---|
69c0b621 DG |
1 | #!/bin/bash |
2 | ||
3 | SESSIOND_BIN="lttng-sessiond" | |
355f483d DG |
4 | CURDIR=$(dirname $0) |
5 | TESTDIR=$CURDIR/.. | |
d3e8f6bb DG |
6 | |
7 | source $TESTDIR/utils.sh | |
69c0b621 DG |
8 | |
9 | tmpdir=`mktemp -d` | |
a62e3ec7 | 10 | tests=( $CURDIR/ust_global_event_basic $CURDIR/ust_global_event_wildcard ) |
69c0b621 DG |
11 | exit_code=0 |
12 | ||
13 | function 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 |
38 | TEST_DESC="UST tracer - Global domain (LTTNG_DOMAIN_UST)" |
39 | ||
40 | print_test_banner "$TEST_DESC" | |
69c0b621 | 41 | |
69c0b621 DG |
42 | start_tests |
43 | ||
69c0b621 | 44 | exit $exit_code |