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/..
/..
/..
/
10 TESTAPP_PATH
="$TESTDIR/utils/testapp"
12 GEN_UST_NEVENTS_TESTAPP_NAME
="gen-ust-nevents"
13 GEN_UST_NEVENTS_TESTAPP_BIN
="$TESTAPP_PATH/$GEN_UST_NEVENTS_TESTAPP_NAME/$GEN_UST_NEVENTS_TESTAPP_NAME"
15 TESTAPP_STATE_PATH
=$
(mktemp
--tmpdir -u "tmp.test_notif_event_rule_exclusion_ust_application_state.XXXXXX")
17 # shellcheck source=../../../utils/utils.sh
18 source "$TESTDIR/utils/utils.sh"
19 # shellcheck source=./util_event_generator.sh
20 source "$CURDIR/util_event_generator.sh"
22 function test_event_rule_condition_exclusion_notification
24 ust_event_generator_run_once_per_transition
"$GEN_UST_NEVENTS_TESTAPP_BIN" "$TESTAPP_STATE_PATH" 5 5 &
27 "$CURDIR/notification" 3 LTTNG_DOMAIN_UST
$APP_PID "$TESTAPP_STATE_PATH"
29 kill -SIGUSR2 $APP_PID
30 wait $APP_PID 2> /dev
/null
33 start_lttng_sessiond_notap
35 test_event_rule_condition_exclusion_notification
37 stop_lttng_sessiond_notap
39 rm -rf "$TESTAPP_STATE_PATH"