From 7771a3955714e7fb3517a73aa627f69d9bb685c9 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Tue, 8 Apr 2025 14:33:53 +0200 Subject: [PATCH] test/chrony: add all the new refclock options Add all the new refclock options to the test manifest. --- test/data/stages/chrony/b.json | 45 ++++++++++++++++++++++++++++++ test/data/stages/chrony/b.mpp.yaml | 32 +++++++++++++++++++++ test/data/stages/chrony/diff.json | 2 +- 3 files changed, 78 insertions(+), 1 deletion(-) diff --git a/test/data/stages/chrony/b.json b/test/data/stages/chrony/b.json index a514b84d..d3577545 100644 --- a/test/data/stages/chrony/b.json +++ b/test/data/stages/chrony/b.json @@ -657,6 +657,51 @@ "timeservers": [ "ntp.example.com", "ntp2.example.com" + ], + "refclocks": [ + { + "driver": { + "name": "PPS", + "device": "/dev/pps42", + "clear": true + }, + "poll": 1, + "dpoll": 2, + "offset": 0.3 + }, + { + "driver": { + "name": "SHM", + "segment": 42, + "perm": "0660" + }, + "poll": 1, + "dpoll": 2, + "offset": 0.3 + }, + { + "driver": { + "name": "SOCK", + "path": "/run/time/thingie.socket" + }, + "poll": 1, + "dpoll": 2, + "offset": 0.3 + }, + { + "driver": { + "name": "PHC", + "path": "/dev/ptp11", + "nocrossts": true, + "extpps": true, + "pin": 3, + "channel": 4, + "clear": true + }, + "poll": 1, + "dpoll": 2, + "offset": 0.3 + } ] } } diff --git a/test/data/stages/chrony/b.mpp.yaml b/test/data/stages/chrony/b.mpp.yaml index 39ae20a4..801c2b2a 100644 --- a/test/data/stages/chrony/b.mpp.yaml +++ b/test/data/stages/chrony/b.mpp.yaml @@ -32,3 +32,35 @@ pipelines: timeservers: - ntp.example.com - ntp2.example.com + refclocks: + - driver: + name: PPS + device: "/dev/pps42" + clear: true + poll: 1 + dpoll: 2 + offset: 0.3 + - driver: + name: SHM + segment: 42 + perm: "0660" + poll: 1 + dpoll: 2 + offset: 0.3 + - driver: + name: SOCK + path: "/run/time/thingie.socket" + poll: 1 + dpoll: 2 + offset: 0.3 + - driver: + name: PHC + path: "/dev/ptp11" + nocrossts: true + extpps: true + pin: 3 + channel: 4 + clear: true + poll: 1 + dpoll: 2 + offset: 0.3 diff --git a/test/data/stages/chrony/diff.json b/test/data/stages/chrony/diff.json index e3872a35..a0cd450e 100644 --- a/test/data/stages/chrony/diff.json +++ b/test/data/stages/chrony/diff.json @@ -5,7 +5,7 @@ "/etc/chrony.conf": { "content": [ "sha256:204145d4e6cdbb720012175d1ad0209d5f618055d906ed651f883370cce915b0", - "sha256:9afbf4d52438f25af8fd74e6a9ee41c61e266505e83063ad894376b710496746" + "sha256:6608a8dd24405bf8dfdfdb4eba8a5a3340b1700fe09cf63111c529df0afb7ae3" ] } }