diff options
Diffstat (limited to 'nixpkgs/nixos/tests/pict-rs.nix')
-rw-r--r-- | nixpkgs/nixos/tests/pict-rs.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/pict-rs.nix b/nixpkgs/nixos/tests/pict-rs.nix new file mode 100644 index 000000000000..4315e9fb6e90 --- /dev/null +++ b/nixpkgs/nixos/tests/pict-rs.nix @@ -0,0 +1,17 @@ +import ./make-test-python.nix ({ pkgs, lib, ... }: + { + name = "pict-rs"; + meta.maintainers = with lib.maintainers; [ happysalada ]; + + nodes.machine = { ... }: { + environment.systemPackages = with pkgs; [ curl jq ]; + services.pict-rs.enable = true; + }; + + testScript = '' + start_all() + + machine.wait_for_unit("pict-rs") + machine.wait_for_open_port(8080) + ''; + }) |