summary refs log blame commit diff
path: root/nixos/tests/trezord.nix
blob: 67646496ff97c186e0dd84959edbb4cda8615401 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                                               
                   

                                                                     
    







                                              



                                                                                        

     
import ./make-test-python.nix ({ pkgs, ... }: {
  name = "trezord";
  meta = with pkgs.stdenv.lib; {
    maintainers = with maintainers; [ mmahut maintainers."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 -L http://localhost:21325/status/ | grep Version")
  '';
})