From: Marek Szulc Date: Wed, 30 Nov 2022 15:15:55 +0000 (+0100) Subject: Add integration test for log limiter X-Git-Tag: accepted/tizen/unified/20230207.165802~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F24%2F285024%2F8;p=platform%2Fcore%2Fsystem%2Fdlog.git Add integration test for log limiter Change-Id: I951ececa259bed4a7aa5b2806dcdcc5e3aa40e89 --- diff --git a/tests/dlog_test.in b/tests/dlog_test.in index 10e4f00..a022670 100644 --- a/tests/dlog_test.in +++ b/tests/dlog_test.in @@ -955,6 +955,24 @@ if [ "$TEST_DYNAMIC_FILTERS" = "true" ] && [ "$type" != "zero-copy" ]; then # No dlog_logger -t 0 & LOGGER=$! sleep 1 + + # limiter test (the feature allows to enable/disable particular log type) + dlogsend -c 11 -d 1 -t QWE blabla & + + sleep 0.5 + dlogctl -t QWE -s deny + LOG_DETAILS="testing if log limiter works (deny) (1/3)" + [ "$(dlogutil -d QWE | wc -l)" -eq 1 ] && ok || fail + sleep 6 + LOG_DETAILS="testing if log limiter works (deny) (2/3)" + [ "$(dlogutil -d QWE | wc -l)" -eq 1 ] && ok || fail + + dlogctl -t QWE -s allow + sleep 4 + LOG_DETAILS="testing if log limiter works (allow) (3/3)" + [ "$(dlogutil -d QWE | wc -l)" -eq 5 ] && ok || fail + + dlogutil -c fi fi