]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add a couple of basic sanity tests for the security verb
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 15 Apr 2023 19:33:02 +0000 (21:33 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sun, 16 Apr 2023 07:21:13 +0000 (09:21 +0200)
test/units/testsuite-65.sh

index 49e6b87a130be709ec2a9e818768fa50a5e9c0f6..cf3a85641367dc9c12d6d6c9840d0ab0599267c4 100755 (executable)
@@ -150,6 +150,11 @@ systemd-analyze cat-config /etc/systemd/system.conf >/dev/null
 systemd-analyze cat-config systemd/system.conf systemd/journald.conf >/dev/null
 systemd-analyze cat-config systemd/system.conf foo/bar systemd/journald.conf >/dev/null
 systemd-analyze cat-config foo/bar
+# security
+systemd-analyze security
+systemd-analyze security --json=off
+systemd-analyze security --json=pretty | jq
+systemd-analyze security --json=short | jq
 
 if [[ ! -v ASAN_OPTIONS ]]; then
     # check that systemd-analyze cat-config paths work in a chroot