nixpkgs/nixos/tests/rshim.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
555 B
Nix
Raw Normal View History

2023-05-15 14:09:28 +02:00
{ system ? builtins.currentSystem
, config ? { }
, pkgs ? import ../.. { inherit system config; }
}:
with import ../lib/testing-python.nix { inherit system pkgs; };
with pkgs.lib;
{
basic = makeTest {
name = "rshim";
meta.maintainers = with maintainers; [ nikstur ];
nodes.machine = { config, pkgs, ... }: {
services.rshim.enable = true;
};
testScript = { nodes, ... }: ''
machine.start()
machine.wait_for_unit("multi-user.target")
print(machine.succeed("systemctl status rshim.service"))
'';
};
}