Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
25 lines
555 B
Nix
25 lines
555 B
Nix
{ 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"))
|
|
'';
|
|
};
|
|
}
|