Unverified Commit 19c40f0e authored by Pyrox's avatar Pyrox
Browse files

nixos/tests/ntpd: init

parent 4e632e9c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 {};

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')
    '';
  }
)