mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
nixos/tzupdate: Add basic test
This commit is contained in:
parent
1ee8b71382
commit
fdf05e4991
2 changed files with 23 additions and 0 deletions
|
@ -1389,6 +1389,7 @@ in
|
||||||
tuxguitar = runTest ./tuxguitar.nix;
|
tuxguitar = runTest ./tuxguitar.nix;
|
||||||
twingate = runTest ./twingate.nix;
|
twingate = runTest ./twingate.nix;
|
||||||
typesense = handleTest ./typesense.nix { };
|
typesense = handleTest ./typesense.nix { };
|
||||||
|
tzupdate = runTest ./tzupdate.nix;
|
||||||
ucarp = handleTest ./ucarp.nix { };
|
ucarp = handleTest ./ucarp.nix { };
|
||||||
udisks2 = handleTest ./udisks2.nix { };
|
udisks2 = handleTest ./udisks2.nix { };
|
||||||
ulogd = handleTest ./ulogd/ulogd.nix { };
|
ulogd = handleTest ./ulogd/ulogd.nix { };
|
||||||
|
|
22
nixos/tests/tzupdate.nix
Normal file
22
nixos/tests/tzupdate.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
let
|
||||||
|
clientNodeName = "client";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
name = "tzupdate";
|
||||||
|
|
||||||
|
# TODO: Test properly:
|
||||||
|
# - Add server node
|
||||||
|
# - Add client configuration to talk to the server node
|
||||||
|
# - Assert that the time zone changes appropriately
|
||||||
|
nodes.${clientNodeName} = {
|
||||||
|
services.tzupdate.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
start_all()
|
||||||
|
${clientNodeName}.wait_for_unit("multi-user.target")
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta.maintainers = [ lib.maintainers.l0b0 ];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue