nixpkgs/nixos/tests/rshim.nix

31 lines
596 B
Nix
Raw Permalink Normal View History

{
system ? builtins.currentSystem,
config ? { },
pkgs ? import ../.. { inherit system config; },
2023-05-15 14:09:28 +02:00
}:
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;
};
2023-05-15 14:09:28 +02:00
testScript =
{ nodes, ... }:
''
machine.start()
machine.wait_for_unit("multi-user.target")
2023-05-15 14:09:28 +02:00
print(machine.succeed("systemctl status rshim.service"))
'';
2023-05-15 14:09:28 +02:00
};
}