Miroslav Lichvar
f5fe3ab4a1
test/unit: add sources unit test
2016-02-16 13:43:33 +01:00
Miroslav Lichvar
6b6b097fe8
test/unit: include microseconds in default random seed
2016-02-16 13:43:28 +01:00
Miroslav Lichvar
4998afc9bb
test/unit: add more helper functions
2016-02-16 13:43:07 +01:00
Miroslav Lichvar
80f4d75968
test/unit: follow chrony function naming convention
2016-02-15 16:09:05 +01:00
Miroslav Lichvar
910663c37b
test: add ntp_sources unit test
2016-02-05 15:20:40 +01:00
Miroslav Lichvar
34a4695e81
test: add clientlog unit test
2016-02-05 15:20:40 +01:00
Miroslav Lichvar
4c77d18416
test: add addrfilt unit test
2016-02-05 15:20:40 +01:00
Miroslav Lichvar
a63e18edb8
test: specify files with path in source commands
...
This should prevent sourcing of an unrelated file found in $PATH.
2016-02-05 15:20:40 +01:00
Miroslav Lichvar
8b676502de
test: don't download files in tests
...
Remove automatic download and compilation of clknetsim. If clknetsim is
not found, skip all simulation tests, but don't fail "make check".
Also, respect the CLKNETSIM_PATH environment variable.
2016-02-05 15:20:40 +01:00
Miroslav Lichvar
4ab98f62e9
test: add support for unit testing
2016-02-05 15:20:40 +01:00
Miroslav Lichvar
b80df5152a
Merge branch '2.2-security'
2016-01-20 12:18:42 +01:00
Miroslav Lichvar
86c21a3a85
test: extend 105-ntpauth to test symmetric mode
2016-01-18 17:37:21 +01:00
Miroslav Lichvar
05236a4f23
test: allow setting options for each peer side separately
2016-01-18 17:37:21 +01:00
Miroslav Lichvar
83cd8ae39b
test: don't check packet intervals in 009-sourceselection
...
Since commit 8b235297
, which changed address hashing, the first packet
is not sent to the first server and doesn't have the extra delay. If the
last packet is sent to the first server, the mean outgoing interval will
be significantly longer than the incoming interval and the check will
fail.
2016-01-08 14:30:23 +01:00
Miroslav Lichvar
23b9d80897
test: add 120-selectoptions
2016-01-08 14:30:23 +01:00
Miroslav Lichvar
9fc15394de
configure: disable scfilter by default
...
As an experimental feature it should be explicitly enabled.
2015-10-19 11:18:17 +02:00
Miroslav Lichvar
5190539ce1
test: add tests for system adjtime() and ntp_adjtime()
...
Include a test program to determine how the adjtime() implementation
behaves. Check the range of supported offset, support for readonly
operation, and slew rate with different update intervals and offsets.
Also, add a test for ntp_adjtime() to check what frequency range it
supports.
2015-09-17 10:56:51 +02:00
Miroslav Lichvar
5a40950ffd
test: extend compilation/001-features
2015-09-09 17:19:07 +02:00
Miroslav Lichvar
5039f959e0
sources: add option to limit selection by root distance
...
Add maxdistance directive to set the maximum root distance the sources
are allowed to have to be selected. This is useful to reject NTPv4
sources that are no longer synchronized and report large dispersion.
The default value is 3 seconds.
2015-08-25 17:35:34 +02:00
Miroslav Lichvar
802cdb3230
test: require latest clknetsim
2015-06-19 14:20:58 +02:00
Miroslav Lichvar
08b152d6a2
test: add 202-prefer
2015-06-08 12:33:46 +02:00
Miroslav Lichvar
83c6213c67
test: add option to override generated server directives on client
2015-06-08 12:33:34 +02:00
Miroslav Lichvar
0abdc2a350
smooth: add option to smooth out only leap seconds
...
The leaponly option can be used to enable a mode where only leap seconds
are smoothed out and normal offset/frequency changes are ignored. This
is useful to make the interval in which a leap second is smoothed out
constant and allow an NTP client to use multiple leap smearing servers
safely.
2015-06-02 15:24:01 +02:00
Miroslav Lichvar
857d51ea8e
test: extend 113-leapsecond for leap smear
2015-04-07 10:51:07 +02:00
Miroslav Lichvar
293806d52d
test: add 119-smoothtime
2015-04-07 10:42:32 +02:00
Miroslav Lichvar
78283dd822
test: fix source selection check
...
The chronyd log message changed from "no reachable sources" to "no
selectable sources" in 8f062454
.
2015-04-02 16:43:25 +02:00
Miroslav Lichvar
9ff0dbb7a4
test: make 009-sourceselection more reliable
2015-03-27 10:37:55 +01:00
Miroslav Lichvar
6ba97f9161
test: add 118-maxdelay
2015-03-27 10:37:55 +01:00
Miroslav Lichvar
4eca60e7dc
test: add 117-fallbackdrift
2015-03-27 10:37:55 +01:00
Miroslav Lichvar
80af04040a
ntp: change default maxdelay to 3 seconds
2015-03-27 10:37:54 +01:00
Miroslav Lichvar
ddbbe30b9e
test: extend 113-leapsecond to test new leap modes
2015-03-27 10:37:54 +01:00
Miroslav Lichvar
2f6152a580
test: require latest clknetsim
2015-01-28 09:09:08 +01:00
Miroslav Lichvar
c8fe0fe992
test: add compilation test
...
Check if chrony can be compiled in various combination of disabled
features. This should fail if there are missing functions in stubs.c.
2015-01-26 12:16:17 +01:00
Miroslav Lichvar
46a0aab6b9
test: require latest clknetsim
2015-01-26 10:40:15 +01:00
Miroslav Lichvar
1d977e021d
test: fix 111-knownclient
...
The new NTPv4 loop synchronization check fails as clknetsim doesn't
support IP_PKTINFO yet. Use the noselect option to prevent the server to
synchronize to the client.
2014-11-21 11:44:15 +01:00
Miroslav Lichvar
1afcb4f29a
test: add 116-minsources
2014-10-20 18:05:20 +02:00
Miroslav Lichvar
bd3cfeae92
test: add 009-sourceselection
2014-10-20 12:26:49 +02:00
Miroslav Lichvar
9ef723eb97
test: add option to create falsetickers
2014-10-20 12:26:29 +02:00
Miroslav Lichvar
bb16c81e7b
test: make 114-presend more tolerant
2014-09-23 15:46:27 +02:00
Miroslav Lichvar
d0fb17d70c
test: add 115-cmdmontime
2014-08-18 16:06:28 +02:00
Miroslav Lichvar
6d8ffeefd6
test: add 114-presend
2014-08-15 16:51:15 +02:00
Miroslav Lichvar
192f74f0a1
test: fix check in run script
2014-08-15 11:18:44 +02:00
Miroslav Lichvar
be203d9af0
test: add 008-ntpera
2014-08-15 11:18:44 +02:00
Miroslav Lichvar
f8af299321
test: allow tests to be skipped
2014-08-15 11:18:44 +02:00
Miroslav Lichvar
7799e14770
test: increase default time rms limit
...
This is improves testing reliability with new default corrtimeratio.
2014-08-06 15:46:32 +02:00
Miroslav Lichvar
20aab86e12
test: require latest clknetsim
2014-08-06 15:26:35 +02:00
Miroslav Lichvar
5762d33e38
test: require latest clknetsim revision
2014-06-25 17:35:59 +02:00
Miroslav Lichvar
64ba5a5b65
test: extend 109-makestep
2014-06-05 14:26:07 +02:00
Miroslav Lichvar
a02d7555c2
test: add 113-leapsecond
2014-06-04 16:58:41 +02:00
Miroslav Lichvar
571669ad6c
test: update packet interval check for new clknetsim
2014-06-03 18:10:27 +02:00