Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
25 lines
486 B
Nix
25 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')
|
|
'';
|
|
}
|
|
)
|