mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
20 lines
492 B
Nix
20 lines
492 B
Nix
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");
|
|
'';
|
|
})
|