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