uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
36
nixos/tests/rsyncd.nix
Normal file
36
nixos/tests/rsyncd.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||
name = "rsyncd";
|
||||
meta.maintainers = with pkgs.lib.maintainers; [ ehmry ];
|
||||
|
||||
nodes = let
|
||||
mkNode = socketActivated:
|
||||
{ config, ... }: {
|
||||
networking.firewall.allowedTCPPorts = [ config.services.rsyncd.port ];
|
||||
services.rsyncd = {
|
||||
enable = true;
|
||||
inherit socketActivated;
|
||||
settings = {
|
||||
global = {
|
||||
"reverse lookup" = false;
|
||||
"forward lookup" = false;
|
||||
};
|
||||
tmp = {
|
||||
path = "/nix/store";
|
||||
comment = "test module";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
a = mkNode false;
|
||||
b = mkNode true;
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
a.wait_for_unit("rsync")
|
||||
b.wait_for_unit("sockets.target")
|
||||
b.succeed("rsync a::")
|
||||
a.succeed("rsync b::")
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue