diff options
author | nikstur <nikstur@outlook.com> | 2023-05-15 14:09:28 +0200 |
---|---|---|
committer | nikstur <nikstur@outlook.com> | 2023-05-15 14:09:28 +0200 |
commit | 46dfed6010a624a7aec49bbc63752847ae3ff15a (patch) | |
tree | c97a75ced10b701cb6ca96d803ec32013b060ea3 /nixos | |
parent | 6852dc2359784c34941270d3f9532b0d7cfcd225 (diff) |
nixos/tests/rshim: init
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/rshim.nix | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 008dfbe393772..81c5e8dd9f3aa 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -644,6 +644,7 @@ in { retroarch = handleTest ./retroarch.nix {}; robustirc-bridge = handleTest ./robustirc-bridge.nix {}; roundcube = handleTest ./roundcube.nix {}; + rshim = handleTest ./rshim.nix {}; rspamd = handleTest ./rspamd.nix {}; rss2email = handleTest ./rss2email.nix {}; rstudio-server = handleTest ./rstudio-server.nix {}; diff --git a/nixos/tests/rshim.nix b/nixos/tests/rshim.nix new file mode 100644 index 0000000000000..bb5cce028ae79 --- /dev/null +++ b/nixos/tests/rshim.nix @@ -0,0 +1,25 @@ +{ 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")) + ''; + }; +} |