Blame lenses/tests/test_chrony.aug

Packit 06dd63
(*
Packit 06dd63
Module: Test_Chrony
Packit 06dd63
  Provides unit tests and examples for the <Chrony> lens.
Packit 06dd63
*)
Packit 06dd63
Packit 06dd63
module Test_Chrony =
Packit 06dd63
Packit 06dd63
  let exampleconf = "# Comment
Packit 06dd63
#Comment
Packit 06dd63
! Comment
Packit 06dd63
!Comment
Packit 06dd63
; Comment
Packit 06dd63
;Comment
Packit 06dd63
% Comment
Packit 06dd63
%Comment
Packit 06dd63
Packit 06dd63
server ntp1.example.com
Packit 06dd63
server ntp2.example.com iburst
Packit 06dd63
server ntp3.example.com presend 2
Packit 06dd63
server ntp4.example.com offline polltarget 4
Packit 06dd63
server ntp5.example.com maxdelay 2 offline
Packit 06dd63
server ntp6.example.com maxdelay 2 iburst presend 2 xleave offset 1e-4
Packit 06dd63
server ntp7.example.com iburst presend 2 offline prefer trust require
Packit 06dd63
server ntp8.example.com minsamples 8 maxsamples 16 version 3
Packit 06dd63
server ntp9.example.com burst mindelay 0.1 asymmetry 0.5
Packit 06dd63
peer ntpc1.example.com
Packit 06dd63
pool pool1.example.com iburst maxsources 3
Packit 06dd63
allow
Packit 06dd63
deny all
Packit 06dd63
cmdallow 192.168.1.0/24
Packit 06dd63
cmddeny all 192.168.2.0/24
Packit 06dd63
stratumweight 0
Packit 06dd63
	driftfile /var/lib/chrony/drift
Packit 06dd63
	rtcsync
Packit 06dd63
makestep 10 -1
Packit 06dd63
bindcmdaddress 127.0.0.1
Packit 06dd63
bindcmdaddress ::1
Packit 06dd63
local
Packit 06dd63
local stratum 10
Packit 06dd63
local distance 1.0 orphan
Packit 06dd63
keyfile /etc/chrony.keys
Packit 06dd63
commandkey 1
Packit 06dd63
generatecommandkey
Packit 06dd63
manual
Packit 06dd63
noclientlog
Packit 06dd63
logchange 0.5
Packit 06dd63
logdir /var/log/chrony
Packit 06dd63
log rtc measurements rawmeasurements statistics tracking refclocks tempcomp
Packit 06dd63
leapsectz right/UTC
Packit 06dd63
broadcast 10 192.168.1.255
Packit 06dd63
broadcast 10 192.168.100.255 123
Packit 06dd63
fallbackdrift 16 19
Packit 06dd63
mailonchange root@localhost 0.5
Packit 06dd63
maxchange 1000 1 2
Packit 06dd63
maxdistance 1.0
Packit 06dd63
maxdrift 100
Packit 06dd63
hwtimestamp eth0 minpoll -2 txcomp 300e-9 rxcomp 645e-9 nocrossts rxfilter all
Packit 06dd63
initstepslew 30 foo.bar.com
Packit 06dd63
initstepslew 30 foo.bar.com baz.quz.com
Packit 06dd63
ratelimit interval 4 burst 16 leak 2
Packit 06dd63
cmdratelimit
Packit 06dd63
refclock SHM 0 refid SHM0 delay 0.1 offset 0.2 noselect tai stratum 3
Packit 06dd63
refclock SOCK /var/run/chrony-GPS.sock pps width 0.1
Packit 06dd63
refclock PPS /dev/pps0 dpoll 2 poll 3 lock SHM0 rate 5 minsamples 8
Packit 06dd63
smoothtime 400 0.001 leaponly
Packit 06dd63
tempcomp /sys/class/hwmon/hwmon0/temp2_input 30 26000 0.0 0.000183 0.0
Packit 06dd63
tempcomp /sys/class/hwmon/hwmon0/temp2_input 30 /etc/chrony.tempcomp
Packit 06dd63
ntpsigndsocket /var/lib/samba/ntp_signd
Packit 06dd63
"
Packit 06dd63
Packit 06dd63
  test Chrony.lns get exampleconf =
Packit 06dd63
    { "#comment" = "Comment" }
Packit 06dd63
  { "#comment" = "Comment" }
Packit 06dd63
  { "#comment" = "Comment" }
Packit 06dd63
  { "#comment" = "Comment" }
Packit 06dd63
  { "#comment" = "Comment" }
Packit 06dd63
  { "#comment" = "Comment" }
Packit 06dd63
  { "#comment" = "Comment" }
Packit 06dd63
  { "#comment" = "Comment" }
Packit 06dd63
  {  }
Packit 06dd63
  { "server" = "ntp1.example.com" }
Packit 06dd63
  { "server" = "ntp2.example.com"
Packit 06dd63
    { "iburst" }
Packit 06dd63
  }
Packit 06dd63
  { "server" = "ntp3.example.com"
Packit 06dd63
    { "presend" = "2" }
Packit 06dd63
  }
Packit 06dd63
  { "server" = "ntp4.example.com"
Packit 06dd63
    { "offline" }
Packit 06dd63
    { "polltarget" = "4" }
Packit 06dd63
  }
Packit 06dd63
  { "server" = "ntp5.example.com"
Packit 06dd63
    { "maxdelay" = "2" }
Packit 06dd63
    { "offline" }
Packit 06dd63
  }
Packit 06dd63
  { "server" = "ntp6.example.com"
Packit 06dd63
    { "maxdelay" = "2" }
Packit 06dd63
    { "iburst" }
Packit 06dd63
    { "presend" = "2" }
Packit 06dd63
    { "xleave" }
Packit 06dd63
    { "offset" = "1e-4" }
Packit 06dd63
  }
Packit 06dd63
  { "server" = "ntp7.example.com"
Packit 06dd63
    { "iburst" }
Packit 06dd63
    { "presend" = "2" }
Packit 06dd63
    { "offline" }
Packit 06dd63
    { "prefer" }
Packit 06dd63
    { "trust" }
Packit 06dd63
    { "require" }
Packit 06dd63
  }
Packit 06dd63
  { "server" = "ntp8.example.com"
Packit 06dd63
    { "minsamples" = "8" }
Packit 06dd63
    { "maxsamples" = "16" }
Packit 06dd63
    { "version" = "3" }
Packit 06dd63
  }
Packit 06dd63
  { "server" = "ntp9.example.com"
Packit 06dd63
    { "burst" }
Packit 06dd63
    { "mindelay" = "0.1" }
Packit 06dd63
    { "asymmetry" = "0.5" }
Packit 06dd63
  }
Packit 06dd63
  { "peer" = "ntpc1.example.com" }
Packit 06dd63
  { "pool" = "pool1.example.com"
Packit 06dd63
    { "iburst" }
Packit 06dd63
    { "maxsources" = "3" }
Packit 06dd63
  }
Packit 06dd63
  { "allow" }
Packit 06dd63
  { "deny"
Packit 06dd63
    { "all" }
Packit 06dd63
  }
Packit 06dd63
  { "cmdallow" = "192.168.1.0/24" }
Packit 06dd63
  { "cmddeny" = "192.168.2.0/24"
Packit 06dd63
    { "all" }
Packit 06dd63
  }
Packit 06dd63
  { "stratumweight" = "0" }
Packit 06dd63
  { "driftfile" = "/var/lib/chrony/drift" }
Packit 06dd63
  { "rtcsync" }
Packit 06dd63
  { "makestep"
Packit 06dd63
    { "threshold" = "10" }
Packit 06dd63
    { "limit" = "-1" }
Packit 06dd63
  }
Packit 06dd63
  { "bindcmdaddress" = "127.0.0.1" }
Packit 06dd63
  { "bindcmdaddress" = "::1" }
Packit 06dd63
  { "local" }
Packit 06dd63
  { "local"
Packit 06dd63
    { "stratum" = "10" }
Packit 06dd63
  }
Packit 06dd63
  { "local"
Packit 06dd63
    { "distance" = "1.0" }
Packit 06dd63
    { "orphan" }
Packit 06dd63
  }
Packit 06dd63
  { "keyfile" = "/etc/chrony.keys" }
Packit 06dd63
  { "commandkey" = "1" }
Packit 06dd63
  { "generatecommandkey" }
Packit 06dd63
  { "manual" }
Packit 06dd63
  { "noclientlog" }
Packit 06dd63
  { "logchange" = "0.5" }
Packit 06dd63
  { "logdir" = "/var/log/chrony" }
Packit 06dd63
  { "log"
Packit 06dd63
    { "rtc" }
Packit 06dd63
    { "measurements" }
Packit 06dd63
    { "rawmeasurements" }
Packit 06dd63
    { "statistics" }
Packit 06dd63
    { "tracking" }
Packit 06dd63
    { "refclocks" }
Packit 06dd63
    { "tempcomp" }
Packit 06dd63
  }
Packit 06dd63
  { "leapsectz" = "right/UTC" }
Packit 06dd63
  { "broadcast"
Packit 06dd63
    { "interval" = "10" }
Packit 06dd63
    { "address" = "192.168.1.255" }
Packit 06dd63
  }
Packit 06dd63
  { "broadcast"
Packit 06dd63
    { "interval" = "10" }
Packit 06dd63
    { "address" = "192.168.100.255" }
Packit 06dd63
    { "port" = "123" }
Packit 06dd63
  }
Packit 06dd63
  { "fallbackdrift"
Packit 06dd63
    { "min" = "16" }
Packit 06dd63
    { "max" = "19" }
Packit 06dd63
  }
Packit 06dd63
  { "mailonchange"
Packit 06dd63
    { "emailaddress" = "root@localhost" }
Packit 06dd63
    { "threshold" = "0.5" }
Packit 06dd63
  }
Packit 06dd63
  { "maxchange"
Packit 06dd63
    { "threshold" = "1000" }
Packit 06dd63
    { "delay" = "1" }
Packit 06dd63
    { "limit" = "2" }
Packit 06dd63
  }
Packit 06dd63
  { "maxdistance" = "1.0" }
Packit 06dd63
  { "maxdrift" = "100" }
Packit 06dd63
  { "hwtimestamp"
Packit 06dd63
    { "interface" = "eth0" }
Packit 06dd63
    { "minpoll" = "-2" }
Packit 06dd63
    { "txcomp" = "300e-9" }
Packit 06dd63
    { "rxcomp" = "645e-9" }
Packit 06dd63
    { "nocrossts" }
Packit 06dd63
    { "rxfilter" = "all" }
Packit 06dd63
  }
Packit 06dd63
  { "initstepslew"
Packit 06dd63
    { "threshold" = "30" }
Packit 06dd63
    { "address" = "foo.bar.com" }
Packit 06dd63
  }
Packit 06dd63
  { "initstepslew"
Packit 06dd63
    { "threshold" = "30" }
Packit 06dd63
    { "address" = "foo.bar.com" }
Packit 06dd63
    { "address" = "baz.quz.com" }
Packit 06dd63
  }
Packit 06dd63
  { "ratelimit"
Packit 06dd63
    { "interval" = "4" }
Packit 06dd63
    { "burst" = "16" }
Packit 06dd63
    { "leak" = "2" }
Packit 06dd63
  }
Packit 06dd63
  { "cmdratelimit" }
Packit 06dd63
  { "refclock"
Packit 06dd63
    { "driver" = "SHM" }
Packit 06dd63
    { "parameter" = "0" }
Packit 06dd63
    { "refid" = "SHM0" }
Packit 06dd63
    { "delay" = "0.1" }
Packit 06dd63
    { "offset" = "0.2" }
Packit 06dd63
    { "noselect" }
Packit 06dd63
    { "tai" }
Packit 06dd63
    { "stratum" = "3" }
Packit 06dd63
  }
Packit 06dd63
  { "refclock"
Packit 06dd63
    { "driver" = "SOCK" }
Packit 06dd63
    { "parameter" = "/var/run/chrony-GPS.sock" }
Packit 06dd63
    { "pps" }
Packit 06dd63
    { "width" = "0.1" }
Packit 06dd63
  }
Packit 06dd63
  { "refclock"
Packit 06dd63
    { "driver" = "PPS" }
Packit 06dd63
    { "parameter" = "/dev/pps0" }
Packit 06dd63
    { "dpoll" = "2" }
Packit 06dd63
    { "poll" = "3" }
Packit 06dd63
    { "lock" = "SHM0" }
Packit 06dd63
    { "rate" = "5" }
Packit 06dd63
    { "minsamples" = "8" }
Packit 06dd63
  }
Packit 06dd63
  { "smoothtime"
Packit 06dd63
    { "maxfreq" = "400" }
Packit 06dd63
    { "maxwander" = "0.001" }
Packit 06dd63
    { "leaponly" }
Packit 06dd63
  }
Packit 06dd63
  { "tempcomp"
Packit 06dd63
    { "sensorfile" = "/sys/class/hwmon/hwmon0/temp2_input" }
Packit 06dd63
    { "interval" = "30" }
Packit 06dd63
    { "t0" = "26000" }
Packit 06dd63
    { "k0" = "0.0" }
Packit 06dd63
    { "k1" = "0.000183" }
Packit 06dd63
    { "k2" = "0.0" }
Packit 06dd63
  }
Packit 06dd63
  { "tempcomp"
Packit 06dd63
    { "sensorfile" = "/sys/class/hwmon/hwmon0/temp2_input" }
Packit 06dd63
    { "interval" = "30" }
Packit 06dd63
    { "pointfile" = "/etc/chrony.tempcomp" }
Packit 06dd63
  }
Packit 06dd63
  { "ntpsigndsocket" = "/var/lib/samba/ntp_signd" }
Packit 06dd63
Packit 06dd63
Packit 06dd63
(* Local Variables: *)
Packit 06dd63
(* mode: caml       *)
Packit 06dd63
(* End:             *)