#!/bin/bash
#
-# Copyright (C) - 2017 Jonathan Rajotte <jonathan.rajotte-julien@efficiso.com>>
+# Copyright (C) 2017 Jonathan Rajotte <jonathan.rajotte-julien@efficiso.com>>
#
-# This library is free software; you can redistribute it and/or modify it under
-# the terms of the GNU Lesser General Public License as published by the Free
-# Software Foundation; version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-# details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with this library; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+# SPDX-License-Identifier: LGPL-2.1-only
TEST_DESC="Notification"
app_pids=()
-function kernel_event_generator_toogle_state
+function kernel_event_generator_toggle_state
{
kernel_event_generator_suspended=$((kernel_event_generator_suspended==0))
{
state_file=$1
kernel_event_generator_suspended=0
- trap kernel_event_generator_toogle_state SIGUSR1
+ trap kernel_event_generator_toggle_state SIGUSR1
while (true); do
if [[ $kernel_event_generator_suspended -eq "1" ]]; then
done
}
-function ust_event_generator_toogle_state
+function ust_event_generator_toggle_state
{
ust_event_generator_suspended=$((ust_event_generator_suspended==0))
{
state_file=$1
ust_event_generator_suspended=0
- trap ust_event_generator_toogle_state SIGUSR1
+ trap ust_event_generator_toggle_state SIGUSR1
trap "exit" SIGTERM SIGINT
while (true); do
if [[ $ust_event_generator_suspended -eq "1" ]]; then
if [[ -f $state_file ]]; then
rm $state_file 2> /dev/null
fi
- taskset -c 0 $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT > /dev/null 2>&1
+ taskset -c 0 $TESTAPP_BIN -i $NR_ITER -w $NR_USEC_WAIT > /dev/null 2>&1
fi
done
}