diff options
author | Marek Mahut <marek.mahut@gmail.com> | 2019-08-16 17:00:07 +0200 |
---|---|---|
committer | Marek Mahut <marek.mahut@gmail.com> | 2019-08-16 17:05:13 +0200 |
commit | 20ea4b6dd37072f9c4d64c973f04b6ac5123d980 (patch) | |
tree | fb51df20acb87a015e7be1f6840ea5b5fab36055 | |
parent | 5712bea91b1b5f01859a870c212ec520d644dc63 (diff) | |
download | nixlib-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.tar nixlib-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.tar.gz nixlib-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.tar.bz2 nixlib-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.tar.lz nixlib-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.tar.xz nixlib-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.tar.zst nixlib-20ea4b6dd37072f9c4d64c973f04b6ac5123d980.zip |
tests: adding trezord
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/trezord.nix | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index c24c8ae61a58..a79130371d92 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -256,6 +256,7 @@ in tinydns = handleTest ./tinydns.nix {}; tor = handleTest ./tor.nix {}; transmission = handleTest ./transmission.nix {}; + trezord = handleTest ./trezord.nix {}; udisks2 = handleTest ./udisks2.nix {}; upnp = handleTest ./upnp.nix {}; uwsgi = handleTest ./uwsgi.nix {}; diff --git a/nixos/tests/trezord.nix b/nixos/tests/trezord.nix new file mode 100644 index 000000000000..1c85bf539345 --- /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"); + ''; +}) |