Add wildcard test to UST
[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
355f483d
DG
22 start_sessiond
23
69c0b621
DG
24 ./$bin $tmpdir
25 # Test must return 0 to pass.
26 if [ $? -ne 0 ]; then
27 exit_code=1
355f483d 28 stop_sessiond
69c0b621
DG
29 break
30 fi
355f483d 31 stop_sessiond
69c0b621 32 done
d3e8f6bb
DG
33
34 # Cleaning up
35 rm -rf $tmpdir
69c0b621
DG
36}
37
38echo -e "\n-------------------------------------------"
d3e8f6bb 39echo -e "UST tracer - Global domain (LTTNG_DOMAIN_UST)"
69c0b621
DG
40echo -e "---------------------------------------------"
41
69c0b621
DG
42start_tests
43
69c0b621 44exit $exit_code
This page took 0.042054 seconds and 4 git commands to generate.