fix: relayd: unaligned access in trace_chunk_registry_ht_key_hash
[lttng-tools.git] / tests / regression / tools / notification / test_notification_ust_event_rule_condition_exclusion
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 TESTAPP_PATH="$TESTDIR/utils/testapp"
11
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"
14
15 TESTAPP_STATE_PATH=$(mktemp -u -t "tmp.test_notif_event_rule_exclusion_ust_application_state.XXXXXX")
16
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"
21
22 function test_event_rule_condition_exclusion_notification
23 {
24 ust_event_generator_run_once_per_transition "$GEN_UST_NEVENTS_TESTAPP_BIN" "$TESTAPP_STATE_PATH" 5 5 &
25 APP_PID=$!
26
27 "$CURDIR/notification" 3 LTTNG_DOMAIN_UST $APP_PID "$TESTAPP_STATE_PATH"
28
29 kill -SIGUSR2 $APP_PID
30 wait $APP_PID 2> /dev/null
31 }
32
33 start_lttng_sessiond_notap
34
35 test_event_rule_condition_exclusion_notification
36
37 stop_lttng_sessiond_notap
38
39 rm -rf "$TESTAPP_STATE_PATH"
This page took 0.02995 seconds and 4 git commands to generate.