diff options
author | Vincent Blut <vincent.debian@free.fr> | 2019-05-03 23:09:08 +0200 |
---|---|---|
committer | Vincent Blut <vincent.debian@free.fr> | 2019-05-03 23:09:08 +0200 |
commit | aff496ced38fb2ac20b6b4607c29a9b25042d28f (patch) | |
tree | 8b8d1f9f618f22f3c58089333910bac95b65e9cf /test/simulation/110-chronyc | |
parent | a86d8fa791700e1243d9e39eb8adc1c6d79bd41f (diff) |
New upstream version 3.5-pre1
Diffstat (limited to 'test/simulation/110-chronyc')
-rwxr-xr-x | test/simulation/110-chronyc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/simulation/110-chronyc b/test/simulation/110-chronyc index 944cf3f..5736ae4 100755 --- a/test/simulation/110-chronyc +++ b/test/simulation/110-chronyc @@ -4,6 +4,9 @@ test_start "chronyc" +check_config_h 'FEAT_REFCLOCK 1' || test_skip +check_config_h 'FEAT_CMDMON 1' || test_skip + refclock_jitter=$jitter client_conf=" refclock SHM 0 noselect @@ -95,6 +98,8 @@ for chronyc_conf in \ "delete 10.0.0.0" \ "deny 1.2.3.4" \ "deny all 1.2.3.0/24" \ + "dfreq 1.0e-3" \ + "doffset -1.0" \ "dump" \ "local stratum 5 distance 1.0 orphan" \ "local off" \ @@ -126,6 +131,7 @@ for chronyc_conf in \ "settime 16:30" \ "settime 16:30:05" \ "settime Nov 21, 2015 16:30:05" \ + "serverstats" \ "shutdown" \ "smoothtime reset" \ "smoothtime activate" \ @@ -137,4 +143,24 @@ do check_chronyc_output "501 Not authorised" || test_fail done +chronyc_conf="dns -n +dns +n +dns -4 +dns -6 +dns -46 +timeout 200 +retries 1 +keygen +keygen 10 MD5 128 +help +quit +nosuchcommand" + +run_test || test_fail + +check_chronyc_output "^1 (MD5|SHA1) HEX:........................................ +10 MD5 HEX:................................ +System clock:.*this help + *$" || test_fail + test_pass |