SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git] / tests / regression / tools / notification / test_notification_ust_event_rule_condition_exclusion
CommitLineData
2463b787
JR
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
7CURDIR=$(dirname "$0")/
8TESTDIR=$CURDIR/../../../
9
10TMPDIR=$(mktemp -d)
11
12TESTAPP_PATH="$TESTDIR/utils/testapp"
13
14GEN_UST_NEVENTS_TESTAPP_NAME="gen-ust-nevents"
15GEN_UST_NEVENTS_TESTAPP_BIN="$TESTAPP_PATH/$GEN_UST_NEVENTS_TESTAPP_NAME/$GEN_UST_NEVENTS_TESTAPP_NAME"
16
17TESTAPP_STATE_PATH=$(mktemp -u "$TMPDIR/application_state.XXXXXXXXXX")
18
19# shellcheck source=../../../utils/utils.sh
20source "$TESTDIR/utils/utils.sh"
21# shellcheck source=./util_event_generator.sh
22source "$CURDIR/util_event_generator.sh"
23
24function test_event_rule_condition_exclusion_notification
25{
26 ust_event_generator_run_once_per_transition "$GEN_UST_NEVENTS_TESTAPP_BIN" "$TESTAPP_STATE_PATH" 5 5 &
27 APP_PID=$!
28
29 "$CURDIR/notification" 3 LTTNG_DOMAIN_UST $APP_PID "$TESTAPP_STATE_PATH"
30
31 kill -SIGUSR2 $APP_PID
32 wait $APP_PID 2> /dev/null
33}
34
35start_lttng_sessiond_notap
36
37test_event_rule_condition_exclusion_notification
38
39stop_lttng_sessiond_notap
40
41rm -rf "$TMPDIR"
This page took 0.02483 seconds and 5 git commands to generate.