mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
26 lines
486 B
Nix
26 lines
486 B
Nix
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')
|
|
'';
|
|
}
|
|
)
|