mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
739c51ae4e
Avoids blocking on stdout.
21 lines
626 B
Nix
21 lines
626 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "etesync-dav";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ _3699n ];
|
|
};
|
|
|
|
machine = { config, pkgs, ... }: {
|
|
environment.systemPackages = [ pkgs.curl pkgs.etesync-dav ];
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
machine.wait_for_unit("multi-user.target")
|
|
machine.succeed("etesync-dav --version")
|
|
machine.execute("etesync-dav >&2 &")
|
|
machine.wait_for_open_port(37358)
|
|
with subtest("Check that the web interface is accessible"):
|
|
assert "Add User" in machine.succeed("curl -s http://localhost:37358/.web/add/")
|
|
'';
|
|
})
|