Loading nixos/tests/all-tests.nix +1 −0 Original line number Diff line number Diff line Loading @@ -714,6 +714,7 @@ in { nsd = handleTest ./nsd.nix {}; ntfy-sh = handleTest ./ntfy-sh.nix {}; ntfy-sh-migration = handleTest ./ntfy-sh-migration.nix {}; ntpd = handleTest ./ntpd.nix {}; ntpd-rs = handleTest ./ntpd-rs.nix {}; nvidia-container-toolkit = runTest ./nvidia-container-toolkit.nix; nvmetcfg = handleTest ./nvmetcfg.nix {}; Loading nixos/tests/ntpd.nix 0 → 100644 +25 −0 Original line number Diff line number Diff line import ./make-test-python.nix ( { lib, ... }: { name = "ntpd"; meta = { maintainers = with lib.maintainers; [ pyrox0 ]; }; nodes.machine = { services.ntp = { enable = true; }; }; testScript = '' start_all() machine.wait_for_unit('ntpd.service') machine.wait_for_console_text('Listen normally on 10 eth*') machine.succeed('systemctl is-active ntpd.service') machine.succeed('ntpq -p') ''; } ) Loading
nixos/tests/all-tests.nix +1 −0 Original line number Diff line number Diff line Loading @@ -714,6 +714,7 @@ in { nsd = handleTest ./nsd.nix {}; ntfy-sh = handleTest ./ntfy-sh.nix {}; ntfy-sh-migration = handleTest ./ntfy-sh-migration.nix {}; ntpd = handleTest ./ntpd.nix {}; ntpd-rs = handleTest ./ntpd-rs.nix {}; nvidia-container-toolkit = runTest ./nvidia-container-toolkit.nix; nvmetcfg = handleTest ./nvmetcfg.nix {}; Loading
nixos/tests/ntpd.nix 0 → 100644 +25 −0 Original line number Diff line number Diff line import ./make-test-python.nix ( { lib, ... }: { name = "ntpd"; meta = { maintainers = with lib.maintainers; [ pyrox0 ]; }; nodes.machine = { services.ntp = { enable = true; }; }; testScript = '' start_all() machine.wait_for_unit('ntpd.service') machine.wait_for_console_text('Listen normally on 10 eth*') machine.succeed('systemctl is-active ntpd.service') machine.succeed('ntpq -p') ''; } )