Change-Id: I951ececa259bed4a7aa5b2806dcdcc5e3aa40e89
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