Miroslav Lichvar
5c9e1e0b69
test: extend 133-hwtimestamp test
2019-05-10 11:01:27 +02: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
Miroslav Lichvar
d7c93ec950
test: fix distribution of settings in ntp_core unit test
2019-02-20 10:11:58 +01:00
Miroslav Lichvar
e8bc41e862
test: fix tests to skip when missing required feature
2018-09-27 11:42:38 +02:00
Miroslav Lichvar
91dbe3c6c2
test: allow unit tests to be skipped
2018-09-27 11:42:38 +02:00
Miroslav Lichvar
3e876d4218
test: add function for checking config.h in tests
2018-09-27 11:42:38 +02:00
Miroslav Lichvar
31b1f2e8a1
test: include util.h for MIN macro
2018-09-27 11:42:38 +02:00
Miroslav Lichvar
91f3f97ea7
test: fix Makefile to not create .deps in project root
2018-09-19 16:38:15 +02:00
Miroslav Lichvar
add932501f
test: add 136-broadcast test
2018-09-17 18:36:22 +02:00
Miroslav Lichvar
89390a738f
test: add 012-daemonts test
2018-09-17 18:36:22 +02:00
Miroslav Lichvar
ac4f6ab93b
test: improve Makefile
...
The -s option of make apparently doesn't work when called from make -C.
Add another filter to ignore the Entering/Leaving messages.
Also, fix a typo.
2018-09-13 16:29:49 +02:00
Miroslav Lichvar
dbcb1b9b0b
test: include all objects in prerequisites of unit tests
2018-09-13 11:23:16 +02:00
Miroslav Lichvar
6375307798
test: get list of objects from main Makefile
...
Instead of linking unit tests with *.o in the root directory, which may
include conflicting objects from a different configuration (e.g. hash),
add a print target to the main Makefile and use it in the unit test
Makefile to link only with objects that are relevant in the current
configuration.
2018-09-13 11:23:16 +02:00
Miroslav Lichvar
fb78e60d26
test: add 135-ratelimit test
2018-09-12 19:27:48 +02:00
Miroslav Lichvar
b822c7164f
test: add 134-log test
2018-09-12 19:04:11 +02:00
Miroslav Lichvar
aa295730a0
test: extend 110-chronyc test
2018-09-12 18:17:35 +02:00
Miroslav Lichvar
b2b6ef00dc
makefile: remove gcov files and core dumps
2018-09-12 17:15:30 +02:00
Miroslav Lichvar
5dc86c236b
update copyright years
2018-09-12 11:38:10 +02:00
Miroslav Lichvar
bcedacaa3d
test: fix samplefilt unit test to work with low-precision clock
2018-09-10 14:56:03 +02:00
Miroslav Lichvar
49d52b547f
test: make 129-reload more reliable
2018-08-31 12:48:36 +02:00
Miroslav Lichvar
cf7b5363cd
test: extend 110-chronyc test
2018-08-31 09:55:43 +02:00
Miroslav Lichvar
7f3183cc72
test: extend 106-refclock test
2018-08-31 09:55:43 +02:00
Miroslav Lichvar
018977044a
test: add 133-hwtimestamp test
2018-08-30 08:08:19 +02:00
Miroslav Lichvar
cc49d8e6e6
test: add 132-logchange test
2018-08-28 18:27:43 +02:00
Miroslav Lichvar
933bd017b4
test: add 131-maxchange test
2018-08-28 18:27:43 +02:00
Miroslav Lichvar
d558b33d85
test: extend 108-peer test
2018-08-28 18:27:43 +02:00
Miroslav Lichvar
9268bf2cff
test: don't override user settings with default values
...
This fixes commit 671daf06b8
.
2018-08-28 18:27:43 +02:00
Miroslav Lichvar
dbf2c22467
test: extend ntp_core unit test
2018-08-28 18:27:03 +02:00
Miroslav Lichvar
af4fe92095
test: update hash unit test
2018-08-28 18:18:07 +02:00
Miroslav Lichvar
e034a07be8
test: enable unit tests to suspend logging
2018-08-28 18:18:07 +02:00
Miroslav Lichvar
6e10e6740c
test: add 130-quit test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
bfaa10f2b0
test: add 129-reload test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
9f167a7997
test: add 128-nocontrol test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
6908163464
test: separate client/server chronyd options
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
671daf06b8
test: avoid using eval in shell scripts
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
b189a5386b
test: extend util unit test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
7889d108c2
test: add samplefilt unit test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
3cfa8ce9d3
test: add sanitizers test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
570573fe28
test: detect configure errors in compilation test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
62b1a11736
test: add -Werror to CFLAGS in compilation test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
cffc856b50
test: update hwclock unit test
2018-08-21 16:54:54 +02:00
Miroslav Lichvar
8d5b86efe7
test: make 121-orphan more reliable
2018-08-21 15:52:35 +02:00
Miroslav Lichvar
c5bdc52a59
test: don't require exit message to be on last line
...
This is useful with enabled debug output.
2018-08-17 17:39:50 +02:00