1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/nixos/tests/trezord.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
507 B
Nix
Raw Normal View History

2019-11-05 20:45:12 +00:00
import ./make-test-python.nix ({ pkgs, ... }: {
2019-08-16 16:00:07 +01:00
name = "trezord";
meta = with pkgs.lib; {
2020-07-29 11:57:20 +01:00
maintainers = with maintainers; [ mmahut _1000101 ];
2019-08-16 16:00:07 +01:00
};
nodes = {
machine = { ... }: {
services.trezord.enable = true;
services.trezord.emulator.enable = true;
};
};
testScript = ''
2019-11-05 20:45:12 +00:00
start_all()
machine.wait_for_unit("trezord.service")
machine.wait_for_open_port(21325)
2020-09-16 16:10:29 +01:00
machine.wait_until_succeeds("curl -fL http://localhost:21325/status/ | grep Version")
2019-08-16 16:00:07 +01:00
'';
})