mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
nixos/tests/ntpd: init
This commit is contained in:
parent
4e632e9c3f
commit
19c40f0e11
@ -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 {};
|
||||
|
25
nixos/tests/ntpd.nix
Normal file
25
nixos/tests/ntpd.nix
Normal file
@ -0,0 +1,25 @@
|
||||
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…
Reference in New Issue
Block a user