Miroslav Lichvar
19da1d95a8
test: set root ownership of tmp directory in system tests
...
Allow the tests to be started under a non-zero GID.
2023-06-01 14:52:56 +02:00
Miroslav Lichvar
61da7d0913
test: modify order of scfilter levels in system tests
...
Start with positive levels to get the offending system calls in the
system or audit log.
2023-06-01 14:52:56 +02:00
Miroslav Lichvar
105f1f90c1
test: fix 010-nts test for AES-GCM-SIV support
2023-06-01 14:52:51 +02:00
Miroslav Lichvar
0845df7684
cmdmon: add timestamp counters to serverstats report
...
Add the new RX/TX daemon/kernel/hardware timestamp counters to the
serverstats report.
2023-03-22 10:47:22 +01:00
Miroslav Lichvar
26889a8cb7
cmdmon+client: add selectopts command
...
This command uses the new source function to modify configured selection
options of an NTP source or reference clock.
2022-12-14 17:04:49 +01:00
Miroslav Lichvar
166e43b13e
cmdmon: add good responses to ntpdata report
2022-08-18 11:59:40 +02:00
Miroslav Lichvar
eed0a0de56
test: update 007-cmdmon system test for recent changes
...
The new unsynchronised source state is now reported in selectdata before
the first measurement.
Fixes: c29f8888c767 ("sources: handle unsynchronized sources in selection")
2022-03-07 16:00:20 +01:00
Miroslav Lichvar
1fb60f8db8
cmdmon: add interleaved stats to serverstats
...
Report the number of received interleaved requests and current timestamp
count with their span.
Expand the serverstats description in chronyc man page.
2021-10-21 17:04:51 +02:00
Miroslav Lichvar
4049ed8766
test: make 007-cmdmon test more reliable
...
Reorder the local off command with respect to offline and online to
prevent the client from getting an unsynchronized response.
2021-05-12 13:06:15 +02:00
Miroslav Lichvar
385f7ebfd9
test: disable privdrop in nts test
...
They are unrelated features. Not setting privdrop avoids a skip due to
the nobody user not having access to the test directory.
2021-05-10 16:04:34 +02:00
Miroslav Lichvar
97973b1833
sys_linux: add second scfilter level
...
Add level "2" to enable a filter which blocks only specific system calls
like fork and exec* instead of blocking everything unknown. It should
be reliable with respect to changes in libraries, but it provides only a
very limited protection.
2021-05-06 13:37:21 +02:00
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