1{ system ? builtins.currentSystem
2, config ? { }
3, pkgs ? import ../.. { inherit system config; }
4}:
5
6with import ../lib/testing-python.nix { inherit system pkgs; };
7with pkgs.lib;
8
9{
10 basic = makeTest {
11 name = "rshim";
12 meta.maintainers = with maintainers; [ nikstur ];
13
14 nodes.machine = { config, pkgs, ... }: {
15 services.rshim.enable = true;
16 };
17
18 testScript = { nodes, ... }: ''
19 machine.start()
20 machine.wait_for_unit("multi-user.target")
21
22 print(machine.succeed("systemctl status rshim.service"))
23 '';
24 };
25}