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