diff options
Diffstat (limited to 'nixpkgs/nixos/tests/trezord.nix')
-rw-r--r-- | nixpkgs/nixos/tests/trezord.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/trezord.nix b/nixpkgs/nixos/tests/trezord.nix new file mode 100644 index 000000000000..fb60cb4aff10 --- /dev/null +++ b/nixpkgs/nixos/tests/trezord.nix @@ -0,0 +1,19 @@ +import ./make-test-python.nix ({ pkgs, ... }: { + name = "trezord"; + meta = with pkgs.lib; { + maintainers = with maintainers; [ mmahut _1000101 ]; + }; + nodes = { + machine = { ... }: { + services.trezord.enable = true; + services.trezord.emulator.enable = true; + }; + }; + + testScript = '' + start_all() + machine.wait_for_unit("trezord.service") + machine.wait_for_open_port(21325) + machine.wait_until_succeeds("curl -fL http://localhost:21325/status/ | grep Version") + ''; +}) |