]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: rewrite hwclock test
authorRuediger Meier <ruediger.meier@ga-group.nl>
Fri, 6 Jun 2014 11:40:48 +0000 (13:40 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Sun, 8 Jun 2014 10:26:21 +0000 (12:26 +0200)
commit75f7c3ed840a2db11f56190b4bf016af4086a344
tree3f8cfb1e092c61e9fd7251ba46fc99938bd32229
parent710ed55dcde95cad66a8f9bd2a7ecd223f14d653
tests: rewrite hwclock test

Major changes:
 - don't use deprecated ntpdate but sntp client
 - don't update sys time from ntp, just compare offsets
 - now hwclock is the only command which needs root permissions
 - resolve ntp server to one fixed IP to get comparable offsets
   always from the same remote machine
 - don't enter the systohc/hctosys loop if not even --show works
 - verbose but not too ugly debug output

Note, maybe later the resolve_host function could be moved to functions.sh
because other tests (e.g. last) should check whether dns is available.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests/ts/hwclock/systohc