3 Provides unit tests and examples for the <Chrony> lens.
8 let exampleconf = "# Comment
17 server ntp1.example.com
18 server ntp2.example.com iburst
19 server ntp3.example.com presend 2
20 server ntp4.example.com offline polltarget 4
21 server ntp5.example.com maxdelay 2 offline
22 server ntp6.example.com maxdelay 2 iburst presend 2 xleave offset 1e-4
23 server ntp7.example.com iburst presend 2 offline prefer trust require
24 server ntp8.example.com minsamples 8 maxsamples 16 version 3
25 peer ntpc1.example.com
26 pool pool1.example.com iburst maxsources 3
29 cmdallow 192.168.1.0/24
30 cmddeny all 192.168.2.0/24
32 driftfile /var/lib/chrony/drift
35 bindcmdaddress 127.0.0.1
39 local distance 1.0 orphan
40 keyfile /etc/chrony.keys
46 logdir /var/log/chrony
47 log rtc measurements rawmeasurements statistics tracking refclocks tempcomp
49 broadcast 10 192.168.1.255
50 broadcast 10 192.168.100.255 123
52 mailonchange root@localhost 0.5
56 hwtimestamp eth0 minpoll -2 txcomp 300e-9 rxcomp 645e-9 nocrossts
57 initstepslew 30 foo.bar.com
58 initstepslew 30 foo.bar.com baz.quz.com
59 ratelimit interval 4 burst 16 leak 2
61 refclock SHM 0 refid SHM0 delay 0.1 offset 0.2 noselect
62 refclock PPS /dev/pps0 dpoll 2 poll 3 lock SHM0 rate 5 minsamples 8
63 smoothtime 400 0.001 leaponly
64 tempcomp /sys/class/hwmon/hwmon0/temp2_input 30 26000 0.0 0.000183 0.0
65 tempcomp /sys/class/hwmon/hwmon0/temp2_input 30 /etc/chrony.tempcomp
66 ntpsigndsocket /var/lib/samba/ntp_signd
69 test Chrony.lns get exampleconf =
70 { "#comment" = "Comment" }
71 { "#comment" = "Comment" }
72 { "#comment" = "Comment" }
73 { "#comment" = "Comment" }
74 { "#comment" = "Comment" }
75 { "#comment" = "Comment" }
76 { "#comment" = "Comment" }
77 { "#comment" = "Comment" }
79 { "server" = "ntp1.example.com" }
80 { "server" = "ntp2.example.com"
83 { "server" = "ntp3.example.com"
86 { "server" = "ntp4.example.com"
88 { "polltarget" = "4" }
90 { "server" = "ntp5.example.com"
94 { "server" = "ntp6.example.com"
101 { "server" = "ntp7.example.com"
109 { "server" = "ntp8.example.com"
110 { "minsamples" = "8" }
111 { "maxsamples" = "16" }
114 { "peer" = "ntpc1.example.com" }
115 { "pool" = "pool1.example.com"
117 { "maxsources" = "3" }
123 { "cmdallow" = "192.168.1.0/24" }
124 { "cmddeny" = "192.168.2.0/24"
127 { "stratumweight" = "0" }
128 { "driftfile" = "/var/lib/chrony/drift" }
131 { "threshold" = "10" }
134 { "bindcmdaddress" = "127.0.0.1" }
135 { "bindcmdaddress" = "::1" }
141 { "distance" = "1.0" }
144 { "keyfile" = "/etc/chrony.keys" }
145 { "commandkey" = "1" }
146 { "generatecommandkey" }
149 { "logchange" = "0.5" }
150 { "logdir" = "/var/log/chrony" }
154 { "rawmeasurements" }
160 { "leapsectz" = "right/UTC" }
162 { "interval" = "10" }
163 { "address" = "192.168.1.255" }
166 { "interval" = "10" }
167 { "address" = "192.168.100.255" }
175 { "emailaddress" = "root@localhost" }
176 { "threshold" = "0.5" }
179 { "threshold" = "1000" }
183 { "maxdistance" = "1.0" }
184 { "maxdrift" = "100" }
186 { "interface" = "eth0" }
188 { "txcomp" = "300e-9" }
189 { "rxcomp" = "645e-9" }
193 { "threshold" = "30" }
194 { "address" = "foo.bar.com" }
197 { "threshold" = "30" }
198 { "address" = "foo.bar.com" }
199 { "address" = "baz.quz.com" }
209 { "parameter" = "0" }
217 { "parameter" = "/dev/pps0" }
222 { "minsamples" = "8" }
225 { "maxfreq" = "400" }
226 { "maxwander" = "0.001" }
230 { "sensorfile" = "/sys/class/hwmon/hwmon0/temp2_input" }
231 { "interval" = "30" }
234 { "k1" = "0.000183" }
238 { "sensorfile" = "/sys/class/hwmon/hwmon0/temp2_input" }
239 { "interval" = "30" }
240 { "pointfile" = "/etc/chrony.tempcomp" }
242 { "ntpsigndsocket" = "/var/lib/samba/ntp_signd" }
245 (* Local Variables: *)