about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/trezord.nix
blob: 1c85bf539345ddf6a5fe33e43fa27f5df7e14f4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import ./make-test.nix ({ pkgs, ... }: {
  name = "trezord";
  meta = with pkgs.stdenv.lib.maintainers; {
    maintainers = [ mmahut ];
  };

  nodes = {
    machine = { ... }: {
      services.trezord.enable = true;
      services.trezord.emulator.enable = true;
    };
  };

  testScript = ''
    startAll;
    $machine->waitForUnit("trezord.service");
    $machine->waitForOpenPort(21325);
    $machine->waitUntilSucceeds("curl -L http://localhost:21325/status/ | grep Version");
  '';
})