Commit | Line | Data |
---|---|---|
d3e8f6bb DG |
1 | #!/bin/bash |
2 | # | |
3 | # Copyright (C) - 2012 David Goulet <dgoulet@efficios.com> | |
4 | # | |
5 | # This library is free software; you can redistribute it and/or modify it under | |
6 | # the terms of the GNU Lesser General Public License as published by the Free | |
7 | # Software Foundation; version 2.1 of the License. | |
8 | # | |
9 | # This library is distributed in the hope that it will be useful, but WITHOUT | |
10 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
11 | # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | |
12 | # details. | |
13 | # | |
14 | # You should have received a copy of the GNU Lesser General Public License | |
15 | # along with this library; if not, write to the Free Software Foundation, Inc., | |
16 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
c38b5107 CB |
17 | NR_ITER=100 |
18 | TEST_DESC="UST tracer - Generate $NR_ITER process" | |
d3e8f6bb | 19 | |
ec8f26de | 20 | CURDIR=$(dirname $0)/ |
355f483d | 21 | TESTDIR=$CURDIR/../.. |
8acbe07d | 22 | TEST_BIN_NAME="gen-events-time" |
d3e8f6bb DG |
23 | |
24 | source $TESTDIR/utils.sh | |
25 | ||
c38b5107 | 26 | print_test_banner "$TEST_DESC" |
d3e8f6bb | 27 | |
8acbe07d | 28 | if [ ! -x "$CURDIR/$TEST_BIN_NAME" ]; then |
355f483d | 29 | echo -e "No UST $TEST_BIN_NAME binary detected. Passing." |
ec8f26de DG |
30 | exit 0 |
31 | fi | |
32 | ||
d3e8f6bb DG |
33 | # MUST set TESTDIR before calling those functions |
34 | ||
fb3268e3 | 35 | start_lttng_sessiond |
d3e8f6bb | 36 | |
355f483d | 37 | ./$CURDIR/ust-nprocesses $NR_ITER |
d3e8f6bb | 38 | |
fb3268e3 | 39 | stop_lttng_sessiond |
d3e8f6bb | 40 | |
355f483d | 41 | exit 0 |