From 0e57ab1d109e48bfd0b7d1d9d364c6261353d361 Mon Sep 17 00:00:00 2001 From: Mateusz Majewski Date: Mon, 17 Aug 2020 10:05:39 +0200 Subject: [PATCH] Add a NOP QoS test Change-Id: I2e4eea1c1fe50affe4b0e9b39ac104675428ecfa --- tests/dlog_test.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/dlog_test.in b/tests/dlog_test.in index 5f08c50..cfe4914 100644 --- a/tests/dlog_test.in +++ b/tests/dlog_test.in @@ -752,17 +752,21 @@ if [ "$TEST_DYNAMIC_FILTERS" == "true" ]; then LOGGER=$! sleep 1 + dlogsend -b main -t DLOG_QOS_TEST0 -c 60 -d 1 -f 4 "A normal app that just wants to log" + LOG_DETAILS="testing if QoS works (1/4)" + [[ $(dlogutil -d DLOG_QOS_TEST0 | wc -l) -eq 60 ]] && ok || fail + dlogsend -b main -t DLOG_QOS_TEST1 -c 300 -d 1 -f 20 "Some log spam" - LOG_DETAILS="testing if QoS works (1/3)" + LOG_DETAILS="testing if QoS works (2/4)" [[ $(dlogutil -d DLOG_QOS_TEST1 | wc -l) -le 180 ]] && ok || fail dlogsend -b main -t DLOG_QOS_TEST2 -c 60 -d 1 -f 4 "A normal app that just wants to log" & DLOGSEND_PID=$! dlogsend -b main -t DLOG_QOS_TEST3 -c 240 -d 1 -f 16 "Some log spam" wait $DLOGSEND_PID - LOG_DETAILS="testing if QoS works (2/3)" + LOG_DETAILS="testing if QoS works (3/4)" [[ $(dlogutil -d DLOG_QOS_TEST2 DLOG_QOS_TEST3 | wc -l) -le 180 ]] && ok || fail - LOG_DETAILS="testing if QoS works (3/3)" + LOG_DETAILS="testing if QoS works (4/4)" [[ $(dlogutil -d DLOG_QOS_TEST2 | wc -l) -gt 40 ]] && ok || fail DLOG_CONFIG_PATH=$PREQOS_CONFIG_PATH -- 2.7.4