Add UST test for n events using validation
[lttng-tools.git] / tests / lttng / run-ust-global-tests.sh
1 #!/bin/bash
2
3 SESSIOND_BIN="lttng-sessiond"
4 TESTDIR=$(dirname $0)/..
5
6 source $TESTDIR/utils.sh
7
8 tmpdir=`mktemp -d`
9 tests=( ust_global_event_basic ust_global_all_events_basic )
10 exit_code=0
11
12 function start_tests ()
13 {
14 for bin in ${tests[@]};
15 do
16 ./$bin $tmpdir
17 # Test must return 0 to pass.
18 if [ $? -ne 0 ]; then
19 exit_code=1
20 break
21 fi
22 done
23
24 # Cleaning up
25 rm -rf $tmpdir
26 }
27
28 echo -e "\n-------------------------------------------"
29 echo -e "UST tracer - Global domain (LTTNG_DOMAIN_UST)"
30 echo -e "---------------------------------------------"
31
32 PID_SESSIOND=`pidof lt-$SESSIOND_BIN`
33
34 # Simply wait for the session daemon bootstrap
35 sleep 1
36
37 start_tests
38
39 exit $exit_code
This page took 0.029719 seconds and 4 git commands to generate.