Skip to content

Commit

Permalink
test: add test cases for timestamp with time zone
Browse files Browse the repository at this point in the history
(cherry picked from commit 25999f868fe0e9684af7a364224ac42071b70f74)
(cherry picked from commit b64601d4545eced99690f99eb5e8b0bb0f1cebff)
  • Loading branch information
yuwata authored and bluca committed Nov 15, 2024
1 parent d4ecc48 commit 1a55c2d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/units/testsuite-65.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ systemd-analyze calendar --base-time=yesterday --iterations=5 '*-* *:*:*'
systemd-analyze timestamp now
systemd-analyze timestamp -- -1
systemd-analyze timestamp yesterday now tomorrow
systemd-analyze timestamp 'Fri 2012-11-23 23:02:15'
systemd-analyze timestamp 'Fri 2012-11-23 23:02:15 UTC'
systemd-analyze timestamp 'Fri 2012-11-23 23:02:15 CET'
for i in $(timedatectl list-timezones); do
[[ -e "/usr/share/zoneinfo/$i" ]] || continue
systemd-analyze timestamp "Fri 2012-11-23 23:02:15 $i"
done
(! systemd-analyze timestamp yesterday never tomorrow)
(! systemd-analyze timestamp 1)
(! systemd-analyze timestamp '*-2-29 0:0:0')
Expand Down

0 comments on commit 1a55c2d

Please sign in to comment.