8c6b1282689a1bdf4ca296d875df498eec248765
[lttng-tools.git] / tests / regression / ust / libc-wrapper / test_libc-wrapper
1 #!/bin/sh
2 #
3 # Copyright (C) - 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 #
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License, version 2 only, as
7 # published by the Free Software Foundation.
8 #
9 # This program is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 # more details.
13 #
14 # You should have received a copy of the GNU General Public License along with
15 # this program; if not, write to the Free Software Foundation, Inc., 51
16 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
18 # Check for a running sessiond
19 `pidof lt-lttng-sessiond`
20 STOP_SESSIOND=$?
21
22 CURDIR=$(dirname $0)
23 TESTDIR=${CURDIR}/../../..
24
25 # Try to launch a sessiond before invoking the python test script
26 if [ $STOP_SESSIOND -ne 0 ]; then
27 DIR=$(readlink -f ${TESTDIR})
28 ${DIR}/../src/bin/lttng-sessiond/lttng-sessiond --daemonize --quiet --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd"
29 fi
30
31 python3 ${CURDIR}/test_libc-wrapper.py
32
33 if [ $STOP_SESSIOND -ne 0 ]; then
34 kill `pidof lt-lttng-sessiond`
35 fi
This page took 0.030746 seconds and 3 git commands to generate.