Miroslav Lichvar
8c1e16711d
test: fix date use in 010-nts system test
...
Avoid using nonportable -d option of date.
2021-04-29 15:03:37 +02:00
Miroslav Lichvar
1d03908646
test: remove logs before chronyd start in system tests
2021-04-29 13:26:01 +02:00
Miroslav Lichvar
49d718c025
test: extend configuration in system tests
2021-04-29 13:23:34 +02:00
Miroslav Lichvar
c536b2561b
test: rework seccomp testing
...
Instead of a single test with enabled seccomp, rerun all other
non-destructive and destructive tests for each seccomp level.
2021-04-29 13:23:34 +02:00
Miroslav Lichvar
a9f0c681cb
test: make system tests more reliable
2021-04-15 15:17:13 +02:00
Miroslav Lichvar
f60410016a
test: extend 007-cmdmon system test
2021-03-04 12:36:36 +01:00
Miroslav Lichvar
362d7c517d
test: improve NTS tests
2021-01-14 18:17:48 +01:00
Miroslav Lichvar
82ddc6a883
test: support ss as netstat replacement
...
netstat is considered obsolete on Linux. It is replaced by ss from
iproute. Support both tools for the test port selection.
2021-01-14 18:17:48 +01:00
Miroslav Lichvar
624b76e86e
test: fix port selection to disable grep output
2021-01-14 18:17:48 +01:00
Miroslav Lichvar
698f270b5b
cmdmon: add leap status to selectdata report
2020-10-05 18:56:37 +02:00
Miroslav Lichvar
df43ebe9e0
test: make 007-cmdmon test more reliable
2020-10-01 12:58:17 +02:00
Miroslav Lichvar
4cf6b29397
test: fix 102-hwtimestamp test for new ethtool
...
New ethtool using netlink messages has a different output.
2020-08-20 16:19:13 +02:00
Miroslav Lichvar
0f009e7718
test: extend 007-cmdmon system test
2020-08-20 13:27:53 +02:00
Miroslav Lichvar
24effd7340
test: add 105-nts system test
2020-08-20 13:27:53 +02:00
Miroslav Lichvar
5289fc5f80
test: add 009-binddevice system test
2020-08-20 13:27:53 +02:00
Miroslav Lichvar
ca49304bd6
test: add 008-confload system test
2020-08-20 13:27:53 +02:00
Miroslav Lichvar
7d551d34a0
test: update cmdmon and chronyc tests with new commands
2020-06-17 15:59:29 +02:00
Christian Ehrhardt
c4d6f98bed
test: accept test result if RTC can't enable RTC_UIE_ON
...
The test might run on different platforms. If the platform happens
to have a RTC that does exist but unable to have RTC_UIE_ON set the
test will fail, while the chrony code is actually good.
Examples of bad clocks are:
- ppc64el: rtc-generic
- arm64: rtc-efi
To avoid that extend the log message check on 101-rtc to accept
that condition as a valid test result as well.
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2019-12-12 13:03:26 +01:00
Miroslav Lichvar
f6001202ec
test: update log checks in system tests
...
Measurements are no longer accepted and clock updated when polling
itself.
This fixes commit 7a88e0a87b
.
2019-12-10 15:56:48 +01:00
Miroslav Lichvar
86a99bb257
test: use env in shebang of system tests
...
This should allow the tests to run on systems where bash is not in /bin.
2019-04-26 10:54:02 +02:00
Miroslav Lichvar
3093a11cd0
test: add 104-systemdirs system test
2019-04-25 18:58:01 +02:00
Miroslav Lichvar
058b788d38
test: fix owner of driftfile and keys in system tests
2019-04-25 18:57:39 +02:00
Miroslav Lichvar
66a42fa493
test: allow separate lib/log/run directories in system tests
2019-04-25 18:55:56 +02:00
Miroslav Lichvar
a85f63cc15
test: check if non-root user can access test directory
2019-04-25 18:24:50 +02:00
Miroslav Lichvar
bbe1e69dcc
test: redirect error messages in system tests
2019-04-25 18:24:41 +02:00
Miroslav Lichvar
1b52bba7b9
test: allow TEST_DIR and CHRONYC_WRAPPER to be set for system tests
2019-04-25 17:29:34 +02:00
Miroslav Lichvar
6e52a9be7a
test: add system tests
...
Add a new set of tests for testing basic functionality, starting chronyd
with root privileges on the actual system instead of the simulator.
Tests numbered in the 100-199 range are considered destructive and
intended to be used only on machines dedicated for development or
testing. They are started by the run script only with the -d option.
They may adjust/step the system clock and other clocks, block the RTC,
enable HW timestamping, create SHM segments, etc.
Other tests should not interfere with the system and should work even
when another NTP server/client is running.
2019-04-18 16:11:45 +02:00