Fix tests when lttng-ust is disabled
[lttng-tools.git] / tests / ust / nprocesses / run
CommitLineData
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 18CURDIR=$(dirname $0)/
355f483d 19TESTDIR=$CURDIR/../..
d3e8f6bb 20NR_ITER=100
8acbe07d 21TEST_BIN_NAME="gen-events-time"
d3e8f6bb
DG
22
23source $TESTDIR/utils.sh
24
355f483d
DG
25echo -e "\n-------------------------------------"
26echo -e "UST tracer - Generate $NR_ITER process"
27echo -e "---------------------------------------"
d3e8f6bb 28
8acbe07d 29if [ ! -x "$CURDIR/$TEST_BIN_NAME" ]; then
355f483d 30 echo -e "No UST $TEST_BIN_NAME binary detected. Passing."
ec8f26de
DG
31 exit 0
32fi
33
d3e8f6bb
DG
34# MUST set TESTDIR before calling those functions
35
355f483d 36start_sessiond
d3e8f6bb 37
355f483d 38./$CURDIR/ust-nprocesses $NR_ITER
d3e8f6bb 39
355f483d 40stop_sessiond
d3e8f6bb 41
355f483d 42exit 0
This page took 0.024402 seconds and 4 git commands to generate.