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
27
nixos/tests/plikd.nix
Normal file
27
nixos/tests/plikd.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import ./make-test-python.nix ({ lib, ... }: {
|
||||
name = "plikd";
|
||||
meta = with lib.maintainers; {
|
||||
maintainers = [ freezeboy ];
|
||||
};
|
||||
|
||||
nodes.machine = { pkgs, ... }: let
|
||||
in {
|
||||
services.plikd.enable = true;
|
||||
environment.systemPackages = [ pkgs.plik ];
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
# Service basic test
|
||||
machine.wait_for_unit("plikd")
|
||||
|
||||
# Network test
|
||||
machine.wait_for_open_port("8080")
|
||||
machine.succeed("curl --fail -v http://localhost:8080")
|
||||
|
||||
# Application test
|
||||
machine.execute("echo test > /tmp/data.txt")
|
||||
machine.succeed("plik --server http://localhost:8080 /tmp/data.txt | grep curl")
|
||||
|
||||
machine.succeed("diff data.txt /tmp/data.txt")
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue