depot/third_party/nixpkgs/nixos/tests/trezord.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

19 lines
507 B
Nix

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")
'';
})