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