From: Yu Watanabe Date: Mon, 25 Mar 2024 19:18:16 +0000 (+0900) Subject: test: add test cases for journalctl --facility=/--output=help X-Git-Tag: v256-rc1~406^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=857f29a772f376548f3b0a312cdce86069da1cb4;p=thirdparty%2Fsystemd.git test: add test cases for journalctl --facility=/--output=help Follow-up for d44233503f29ad6f79914c8e6137fc2d260d9f89. --- diff --git a/test/units/testsuite-04.journal.sh b/test/units/testsuite-04.journal.sh index 90d865cdf57..9ca1b789e3b 100755 --- a/test/units/testsuite-04.journal.sh +++ b/test/units/testsuite-04.journal.sh @@ -133,6 +133,8 @@ journalctl -b -n 1 -r --user-unit "*" # Facilities & priorities journalctl --facility help +journalctl --facility help | grep -F 'kern' +journalctl --facility help | grep -F 'mail' journalctl --facility kern -n 1 journalctl --facility syslog --priority 0..3 -n 1 journalctl --facility syslog --priority 3..0 -n 1 @@ -144,6 +146,8 @@ journalctl --facility daemon --priority 5..crit -n 1 # Assorted combinations journalctl -o help +journalctl -o help | grep -F 'short' +journalctl -o help | grep -F 'export' journalctl -q -n all -a | grep . >/dev/null journalctl -q --no-full | grep . >/dev/null journalctl -q --user --system | grep . >/dev/null