Commit graph

14 commits

Author SHA1 Message Date
Masatake YAMATO
7155e836de tests: wrap $TS_{TOPDIR,SELF} in "." cmdline with double quote chars
The command lines used for this change:

  $ cd tests/ts
  $ sed  -i -e 's|. $TS_SELF/|. "$TS_SELF"/|'  $(grep --exclude='*~' -lr -e '^\. \$TS_SELF/')
  $ sed -i -e 's|. $TS_TOPDIR/functions.sh|. "$TS_TOPDIR"/functions.sh|'  $(grep --exclude='*~' -lr -e '^\. \$TS_TOPDIR/functions.sh')

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2022-11-23 16:09:48 +09:00
Karel Zak
cd252c664c docs: update github URL
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-11-03 13:58:21 +01:00
Karel Zak
e589e25f19 tests: skip hwclock/systohc on GH Actions
It seems the delay on GH is too large to get proper result for this
tests. We already ignore it on Travis.

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-01-26 11:54:38 +01:00
Evgeny Vereshchagin
bf04d98b93 skip hwclock/systohc on Travis CI on Ubuntu Precise
It's flaky there.

Closes https://github.com/karelzak/util-linux/issues/1082
2020-07-02 11:52:46 +00:00
Ruediger Meier
a98de9696e tests: skip some last tests if no dns support
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-06-12 01:09:38 +02:00
Ruediger Meier
75f7c3ed84 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>
2014-06-08 12:26:21 +02:00
Ruediger Meier
12826d4c20 tests: consolidate some checks for commands
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>
2014-05-15 12:48:35 +02:00
Sami Kerola
2f79154639 tests: check commands needed for running a test exist
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-07 11:52:57 +01:00
Sami Kerola
e130ce53ce tests: avoid executing dirname(1) command
Bash parameter expansion does the same thing.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-02-17 13:55:41 +01:00
Sami Kerola
73aa889479 tests: hwclock: locate ntpdate by using path
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-02 13:14:20 +02:00
Davidlohr Bueso
19f411cbc6 grammar fixes
Correct grammar from "cannot found" to "cannot find".

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-08-15 14:28:21 +02:00
Karel Zak
601d12fb10 rename util-linux-ng back to util-linux
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30 11:41:59 +01:00
Karel Zak
fb59721f62 tests: cleanup ts/hwclock
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11 23:30:15 +01:00
Karel Zak
8387a824b5 tests: create subdirs for test scripts
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11 23:21:52 +01:00