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