]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: cover a couple of previously missed analyze code paths
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 3 Nov 2022 10:33:13 +0000 (11:33 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 3 Nov 2022 10:33:13 +0000 (11:33 +0100)
test/units/testsuite-65.sh

index 89406a108e78c3e4fe82b6c598344c9cc06ae117..1f34308b44cdc41a1398c9fddfbca929ef22f0bd 100755 (executable)
@@ -45,8 +45,16 @@ systemd-analyze dot "systemd-*.service" >/dev/null
 systemd-analyze dump >/dev/null
 systemd-analyze dump "*" >/dev/null
 systemd-analyze dump "*.socket" >/dev/null
+systemd-analyze dump "*.socket" "*.service" aaaaaaa ... >/dev/null
 systemd-analyze dump systemd-journald.service >/dev/null
 (! systemd-analyze dump "")
+# unit-files
+systemd-analyze unit-files >/dev/null
+systemd-analyze unit-files systemd-journald.service >/dev/null
+systemd-analyze unit-files "*" >/dev/null
+systemd-analyze unit-files "*" aaaaaa "*.service" "*.target" >/dev/null
+systemd-analyze unit-files --user >/dev/null
+systemd-analyze unit-files --user "*" aaaaaa "*.service" "*.target" >/dev/null
 # unit-paths
 systemd-analyze unit-paths
 systemd-analyze unit-paths --user
@@ -103,6 +111,7 @@ systemd-analyze calendar '*-* *:*:*'
 systemd-analyze calendar --iterations=5 '*-* *:*:*'
 systemd-analyze calendar --iterations=50 '*-* *:*:*'
 systemd-analyze calendar --iterations=0 '*-* *:*:*'
+systemd-analyze calendar --iterations=5 '01-01-22 01:00:00'
 systemd-analyze calendar --base-time=yesterday --iterations=5 '*-* *:*:*'
 (! systemd-analyze calendar --iterations=0 '*-* 99:*:*')
 (! systemd-analyze calendar --base-time=never '*-* *:*:*')
@@ -114,12 +123,14 @@ systemd-analyze timestamp -- -1
 systemd-analyze timestamp yesterday now tomorrow
 (! systemd-analyze timestamp yesterday never tomorrow)
 (! systemd-analyze timestamp 1)
+(! systemd-analyze timestamp '*-2-29 0:0:0')
 (! systemd-analyze timestamp "")
 # timespan
 systemd-analyze timespan 1
 systemd-analyze timespan 1s 300s '1year 0.000001s'
 (! systemd-analyze timespan 1s 300s aaaaaa '1year 0.000001s')
 (! systemd-analyze timespan -- -1)
+(! systemd-analyze timespan '*-2-29 0:0:0')
 (! systemd-analyze timespan "")
 # cat-config
 systemd-analyze cat-config systemd/system.conf >/dev/null