Files
nixpkgs/nixos/tests/watchdogd.nix
Adrian Pistol a186d951a9 nixos/tests/watchdogd: Remove test subcommand invocation
It has been removed in watchdogd 4.1.
2025-12-01 20:03:09 +01:00

25 lines
546 B
Nix

{ lib, ... }:
{
name = "watchdogd";
meta.maintainers = with lib.maintainers; [ vifino ];
nodes.machine =
{ pkgs, ... }:
{
virtualisation.qemu.options = [
"-device i6300esb" # virtual watchdog timer
];
boot.kernelModules = [ "i6300esb" ];
services.watchdogd.enable = true;
services.watchdogd.settings = {
supervisor.enabled = true;
};
};
testScript = ''
machine.wait_for_unit("watchdogd.service")
assert "i6300ESB" in machine.succeed("watchdogctl status")
'';
}