1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-19 07:59:24 +03:00
nixpkgs/nixos/tests/trezord.nix

28 lines
591 B
Nix
Raw Normal View History

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;
};
2019-08-16 17:00:07 +02:00
};
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")
'';
}
)