SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git] / tests / regression / tools / notification / test_notification_ust_capture
1 #!/bin/bash
2 #
3 # Copyright (C) 2017 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
4 #
5 # SPDX-License-Identifier: LGPL-2.1-only
6
7 CURDIR=$(dirname "$0")/
8 TESTDIR=$CURDIR/../../../
9
10 TMPDIR=$(mktemp -d)
11
12 TESTAPP_PATH="$TESTDIR/utils/testapp"
13
14 GEN_UST_EVENTS_TESTAPP_NAME="gen-ust-events"
15 GEN_UST_EVENTS_TESTAPP_BIN="$TESTAPP_PATH/$GEN_UST_EVENTS_TESTAPP_NAME/$GEN_UST_EVENTS_TESTAPP_NAME"
16
17 TESTAPP_STATE_PATH=$(mktemp -u "$TMPDIR/application_state.XXXXXXXXXX")
18
19 # shellcheck source=../../../utils/utils.sh
20 source "$TESTDIR/utils/utils.sh"
21 # shellcheck source=./util_event_generator.sh
22 source "$CURDIR/util_event_generator.sh"
23
24 function test_basic_error_path
25 {
26 ust_event_generator_run_once_per_transition \
27 "$GEN_UST_EVENTS_TESTAPP_BIN" "$TESTAPP_STATE_PATH" 3 10 &
28 APP_PID=$!
29
30 "$CURDIR/notification" 7 LTTNG_DOMAIN_UST $APP_PID "$TESTAPP_STATE_PATH"
31
32 kill -SIGUSR2 $APP_PID
33 wait $APP_PID 2> /dev/null
34 }
35
36 start_lttng_sessiond_notap
37
38 test_basic_error_path
39
40 stop_lttng_sessiond_notap
This page took 0.043355 seconds and 5 git commands to generate.