chrony/test/simulation
Miroslav Lichvar 62757cda49 refclock: add local option
Add "local" option to specify that the reference clock is an
unsynchronized clock which is more stable than the system clock (e.g.
TCXO, OCXO, or atomic clock) and it should be used as a local standard
to stabilize the system clock.

Handle the local refclock as a PPS refclock locked to itself which gives
the unsynchronized status to be ignored in the source selection. Wait
for the refclock to get at least minsamples samples and adjust the clock
directly to follow changes in the refclock's sourcestats frequency and
offset.

There should be at most one refclock specified with this option.
2022-02-23 14:43:39 +01:00
..
001-defaults test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
002-largenetwork test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
003-largefreqoffset test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
004-largetimeoffset test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
005-externalstep test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
006-largejitter test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
007-largewander test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
008-ntpera test: ensure awk commands in 008-ntpera return an integer 2022-01-13 09:40:12 +01:00
009-sourceselection test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
010-multrecv test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
011-asymjitter test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
012-daemonts test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
013-nameserv test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
101-poll test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
102-iburst test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
103-initstepslew test: extend 103-initstepslew test 2021-04-07 16:55:38 +02:00
104-driftfile test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
105-ntpauth test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
106-refclock refclock: add local option 2022-02-23 14:43:39 +01:00
107-allowdeny test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
108-peer test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
109-makestep test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
110-chronyc test: update 110-chronyc test 2021-11-24 15:06:36 +01:00
111-knownclient test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
112-port test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
113-leapsecond test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
114-presend test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
115-cmdmontime test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
116-minsources test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
117-fallbackdrift test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
118-maxdelay test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
119-smoothtime test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
120-selectoptions test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
121-orphan test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
122-xleave test: extend 122-xleave test 2021-10-27 16:22:12 +02:00
123-mindelay test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
124-tai test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
125-packetloss test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
126-burst test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
127-filter test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
128-nocontrol test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
129-reload test: extend 129-reload test 2021-04-22 10:20:31 +02:00
130-quit test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
131-maxchange test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
132-logchange test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
133-hwtimestamp test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
134-log test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
135-ratelimit test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
136-broadcast test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
137-pool test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
138-syncloop test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
139-nts test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
140-noclientlog test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
141-copy ntp: add copy option 2021-04-15 15:17:13 +02:00
142-ptpport test: add 142-ptpport test 2021-08-19 14:51:42 +02:00
143-manual test: add 143-manual test 2021-09-23 14:48:59 +02:00
144-exp1 test: add 144-exp1 test 2021-11-16 10:36:26 +01:00
201-freqaccumulation test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
202-prefer test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
README
run test: use env shebang in all bash scripts 2021-03-04 12:36:36 +01:00
test.common test: add 144-exp1 test 2021-11-16 10:36:26 +01:00

This is a collection of simulation tests using the clknetsim simulator
(supported on Linux only).

https://github.com/mlichvar/clknetsim

The CLKNETSIM_PATH environment variable should point to the directory where
clknetsim was downloaded and compiled. If the variable is not set, the tests
will look for clknetsim in ./clknetsim in the current directory.

The tests are written in bash and they can be run directly. The ./run script
runs all tests.