3 # Copyright (C) 2017 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
5 # SPDX-License-Identifier: LGPL-2.1-only
7 CURDIR
=$
(dirname "$0")/
8 TESTDIR
=$CURDIR/..
/..
/..
/
11 TESTAPP_PATH
="$TESTDIR/utils/testapp"
13 GEN_UST_EVENTS_TESTAPP_NAME
="gen-ust-events"
14 GEN_UST_EVENTS_TESTAPP_BIN
="$TESTAPP_PATH/$GEN_UST_EVENTS_TESTAPP_NAME/$GEN_UST_EVENTS_TESTAPP_NAME"
16 TESTAPP_STATE_PATH
=$
(mktemp
-u -t "tmp.test_notif_ust_error_application_state.XXXXXX")
18 # shellcheck source=../../../utils/utils.sh
19 source "$TESTDIR/utils/utils.sh"
20 # shellcheck source=./util_event_generator.sh
21 source "$CURDIR/util_event_generator.sh"
23 function test_basic_error_path
25 ust_event_generator_run_once_per_transition
"$GEN_UST_EVENTS_TESTAPP_BIN" "$TESTAPP_STATE_PATH" 5 5 &
28 "$CURDIR/notification" 1 LTTNG_DOMAIN_UST
$APP_PID "$TESTAPP_STATE_PATH"
30 kill -SIGUSR2 $APP_PID
31 wait $APP_PID 2> /dev
/null
34 start_lttng_sessiond_notap
38 stop_lttng_sessiond_notap
40 rm -f $TESTAPP_STATE_PATH