at master 509 B view raw
1{ pkgs, ... }: 2{ 3 name = "trezord"; 4 meta = with pkgs.lib; { 5 maintainers = with maintainers; [ 6 mmahut 7 _1000101 8 ]; 9 }; 10 nodes = { 11 machine = 12 { ... }: 13 { 14 services.trezord.enable = true; 15 services.trezord.emulator.enable = true; 16 }; 17 }; 18 19 testScript = '' 20 start_all() 21 machine.wait_for_unit("trezord.service") 22 machine.wait_for_open_port(21325) 23 machine.wait_until_succeeds("curl -fL http://localhost:21325/status/ | grep Version") 24 ''; 25}