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 | |
17 | ||
ec8f26de | 18 | CURDIR=$(dirname $0)/ |
355f483d | 19 | TESTDIR=$CURDIR/../.. |
d3e8f6bb | 20 | NR_ITER=100 |
d3e8f6bb DG |
21 | |
22 | source $TESTDIR/utils.sh | |
23 | ||
24 | echo -e "\n-----------------------------------" | |
25 | echo -e "UST tracer - Generate $NR_ITER events" | |
26 | echo -e "-------------------------------------" | |
27 | ||
ec8f26de DG |
28 | if [ ! -e "$CURDIR/gen-nevents" ]; then |
29 | echo -e "No UST nevents binary detected. Passing." | |
30 | exit 0 | |
31 | fi | |
32 | ||
d3e8f6bb DG |
33 | # MUST set TESTDIR before calling those functions |
34 | ||
355f483d | 35 | start_sessiond |
d3e8f6bb | 36 | |
355f483d | 37 | ./$CURDIR/ust-nevents $NR_ITER |
d3e8f6bb | 38 | |
355f483d | 39 | stop_sessiond |
d3e8f6bb DG |
40 | |
41 | rm -rf $TRACE_PATH |