Tests: Convert the UST multi-session test output to TAP
[lttng-tools.git] / tests / regression / ust / nprocesses / test_nprocesses
... / ...
CommitLineData
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
17NR_ITER=100
18TEST_DESC="UST tracer - Generate $NR_ITER process"
19
20CURDIR=$(dirname $0)/
21TESTDIR=$CURDIR/../../..
22TEST_BIN_NAME="gen-events-time"
23
24source $TESTDIR/utils/utils.sh
25
26print_test_banner "$TEST_DESC"
27
28if [ ! -x "$CURDIR/$TEST_BIN_NAME" ]; then
29 echo -e "No UST $TEST_BIN_NAME binary detected. Passing."
30 exit 0
31fi
32
33# MUST set TESTDIR before calling those functions
34
35start_lttng_sessiond
36
37./$CURDIR/ust-nprocesses $NR_ITER
38
39stop_lttng_sessiond
40
41exit 0
This page took 0.022327 seconds and 4 git commands to generate.