Fix: make lttng expand path for trace output opt
[lttng-tools.git] / tests / ust / run-ust-global-tests.sh
... / ...
CommitLineData
1#!/bin/bash
2
3SESSIOND_BIN="lttng-sessiond"
4CURDIR=$(dirname $0)
5TESTDIR=$CURDIR/..
6
7source $TESTDIR/utils.sh
8
9tmpdir=`mktemp -d`
10tests=( $CURDIR/ust_global_event_basic $CURDIR/ust_global_all_events_basic )
11exit_code=0
12
13function 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_sessiond
23
24 ./$bin $tmpdir
25 # Test must return 0 to pass.
26 if [ $? -ne 0 ]; then
27 exit_code=1
28 stop_sessiond
29 break
30 fi
31 stop_sessiond
32 done
33
34 # Cleaning up
35 rm -rf $tmpdir
36}
37
38echo -e "\n-------------------------------------------"
39echo -e "UST tracer - Global domain (LTTNG_DOMAIN_UST)"
40echo -e "---------------------------------------------"
41
42start_tests
43
44exit $exit_code
This page took 0.02245 seconds and 4 git commands to generate.