summary refs log tree commit diff
path: root/nixos/tests/trezord.nix
diff options
context:
space:
mode:
authorMarek Mahut <marek.mahut@gmail.com>2019-08-16 17:00:07 +0200
committerMarek Mahut <marek.mahut@gmail.com>2019-08-16 17:05:13 +0200
commit20ea4b6dd37072f9c4d64c973f04b6ac5123d980 (patch)
treefb51df20acb87a015e7be1f6840ea5b5fab36055 /nixos/tests/trezord.nix
parent5712bea91b1b5f01859a870c212ec520d644dc63 (diff)
downloadnixpkgs-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.tar
nixpkgs-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.tar.gz
nixpkgs-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.tar.bz2
nixpkgs-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.tar.lz
nixpkgs-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.tar.xz
nixpkgs-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.tar.zst
nixpkgs-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.zip
tests: adding trezord
Diffstat (limited to 'nixos/tests/trezord.nix')
-rw-r--r--nixos/tests/trezord.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/nixos/tests/trezord.nix b/nixos/tests/trezord.nix
new file mode 100644
index 00000000000..1c85bf53934
--- /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");
+  '';
+})