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/..
/..
/..
/
12 TESTAPP_PATH
="$TESTDIR/utils/testapp"
14 GEN_UST_NEVENTS_TESTAPP_NAME
="gen-ust-nevents"
15 GEN_UST_NEVENTS_TESTAPP_BIN
="$TESTAPP_PATH/$GEN_UST_NEVENTS_TESTAPP_NAME/$GEN_UST_NEVENTS_TESTAPP_NAME"
17 TESTAPP_STATE_PATH
=$
(mktemp
-u "$TMPDIR/application_state.XXXXXXXXXX")
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"
24 function test_event_rule_condition_exclusion_notification
26 ust_event_generator_run_once_per_transition
"$GEN_UST_NEVENTS_TESTAPP_BIN" "$TESTAPP_STATE_PATH" 5 5 &
29 "$CURDIR/notification" 3 LTTNG_DOMAIN_UST
$APP_PID "$TESTAPP_STATE_PATH"
31 kill -SIGUSR2 $APP_PID
32 wait $APP_PID 2> /dev
/null
35 start_lttng_sessiond_notap
37 test_event_rule_condition_exclusion_notification
39 stop_lttng_sessiond_notap