test: add test cases for journalctl --facility=/--output=help
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Mar 2024 19:18:16 +0000 (04:18 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Mar 2024 19:18:23 +0000 (04:18 +0900)
Follow-up for d44233503f29ad6f79914c8e6137fc2d260d9f89.

test/units/testsuite-04.journal.sh

index 90d865cdf571c74f4dbbe30015e7bad84ec49660..9ca1b789e3b8a90a6672e232030615ef460ea50e 100755 (executable)
@@ -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