]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add simple coverity test for 'resolvectl show-cache'
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 26 Nov 2023 04:12:19 +0000 (13:12 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Nov 2023 19:10:25 +0000 (04:10 +0900)
test/units/testsuite-75.sh

index 94321ca7e5f9e4de9f9947b5d32023ccba4e8a87..064dd3807a95bac2cba582adf87c28e3c355c502 100755 (executable)
@@ -530,6 +530,11 @@ grep -qF "fd00:dead:beef:cafe::123" "$RUN_OUT"
 #run dig +dnssec this.does.not.exist.untrusted.test
 #grep -qF "status: NXDOMAIN" "$RUN_OUT"
 
+### Test resolvectl show-cache
+run resolvectl show-cache
+run resolvectl show-cache --json=short
+run resolvectl show-cache --json=pretty
+
 # Issue: https://github.com/systemd/systemd/issues/29580 (part #1)
 dig @127.0.0.54 signed.test