summaryrefslogtreecommitdiffstats
path: root/tests/ts/hwclock
Commit message (Collapse)AuthorAgeFilesLines
* tests: skip some last tests if no dns supportRuediger Meier2014-06-121-19/+1Star
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: rewrite hwclock testRuediger Meier2014-06-081-21/+76
| | | | | | | | | | | | | | | | 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: consolidate some checks for commandsRuediger Meier2014-05-151-3/+1Star
| | | | | | | | | | | Use ts_check_prog for mdadm, readelf, file, ntpdate, bc (mdadm was not always checked so far). There are some positive side-effects. We are using always $PATH now instead of randomly hardcoded /usr/bin, /sbin, etc. If we ever want to change this again, we should do this generically in ts_init. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: check commands needed for running a test existSami Kerola2014-03-071-0/+3
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: avoid executing dirname(1) commandSami Kerola2014-02-171-1/+1
| | | | | | Bash parameter expansion does the same thing. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: hwclock: locate ntpdate by using pathSami Kerola2012-04-021-1/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* grammar fixesDavidlohr Bueso2011-08-151-1/+1
| | | | | | Correct grammar from "cannot found" to "cannot find". Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* rename util-linux-ng back to util-linuxKarel Zak2010-11-301-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup ts/hwclockKarel Zak2009-02-111-5/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: create subdirs for test scriptsKarel Zak2009-02-111-0/+59
Signed-off-by: Karel Zak <kzak@redhat.com>