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