From 20ea4b6dd37072f9c4d64c973f04b6ac5123d980 Mon Sep 17 00:00:00 2001 From: Marek Mahut Date: Fri, 16 Aug 2019 17:00:07 +0200 Subject: tests: adding trezord --- nixos/tests/trezord.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 nixos/tests/trezord.nix (limited to 'nixos/tests/trezord.nix') diff --git a/nixos/tests/trezord.nix b/nixos/tests/trezord.nix new file mode 100644 index 0000000000000..1c85bf539345d --- /dev/null +++ b/nixos/tests/trezord.nix @@ -0,0 +1,20 @@ +import ./make-test.nix ({ pkgs, ... }: { + name = "trezord"; + meta = with pkgs.stdenv.lib.maintainers; { + maintainers = [ mmahut ]; + }; + + nodes = { + machine = { ... }: { + services.trezord.enable = true; + services.trezord.emulator.enable = true; + }; + }; + + testScript = '' + startAll; + $machine->waitForUnit("trezord.service"); + $machine->waitForOpenPort(21325); + $machine->waitUntilSucceeds("curl -L http://localhost:21325/status/ | grep Version"); + ''; +}) -- cgit 1.4.1