lol

chrony: add nixos test for ptp_kvm

authored by

Gregor Kleen and committed by
Austin Seipp
b355be2d 48ecda09

+25
+1
nixos/tests/all-tests.nix
··· 126 126 cfssl = handleTestOn ["aarch64-linux" "x86_64-linux"] ./cfssl.nix {}; 127 127 charliecloud = handleTest ./charliecloud.nix {}; 128 128 chromium = (handleTestOn ["aarch64-linux" "x86_64-linux"] ./chromium.nix {}).stable or {}; 129 + chrony-ptp = handleTestOn ["aarch64-linux" "x86_64-linux"] ./chrony-ptp.nix {}; 129 130 cinnamon = handleTest ./cinnamon.nix {}; 130 131 cjdns = handleTest ./cjdns.nix {}; 131 132 clickhouse = handleTest ./clickhouse.nix {};
+24
nixos/tests/chrony-ptp.nix
··· 1 + import ./make-test-python.nix ({ lib, ... }: 2 + { 3 + name = "chrony-ptp"; 4 + 5 + nodes = { 6 + qemuGuest = { lib, ... }: { 7 + boot.kernelModules = [ "ptp_kvm" ]; 8 + 9 + services.chrony = { 10 + enable = true; 11 + extraConfig = '' 12 + refclock PHC /dev/ptp_kvm poll 2 dpoll -2 offset 0 stratum 3 13 + ''; 14 + }; 15 + }; 16 + }; 17 + 18 + testScript = '' 19 + start_all() 20 + 21 + qemuGuest.wait_for_unit('multi-user.target') 22 + qemuGuest.succeed('systemctl is-active chronyd.service') 23 + ''; 24 + })