summaryrefslogtreecommitdiffstats
path: root/nixos/tests/trezord.nix
blob: 3d7658754bc8744950cfc50a737c4c91aa843db2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ pkgs, ... }:
{
  name = "trezord";
  meta = {
    maintainers = with pkgs.lib.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")
  '';
}