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
24
nixos/tests/memcached.nix
Normal file
24
nixos/tests/memcached.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||
name = "memcached";
|
||||
|
||||
nodes.machine = {
|
||||
imports = [ ../modules/profiles/minimal.nix ];
|
||||
services.memcached.enable = true;
|
||||
};
|
||||
|
||||
testScript = let
|
||||
testScript = pkgs.writers.writePython3 "test_memcache" {
|
||||
libraries = with pkgs.python3Packages; [ memcached ];
|
||||
} ''
|
||||
import memcache
|
||||
c = memcache.Client(['localhost:11211'])
|
||||
c.set('key', 'value')
|
||||
assert 'value' == c.get('key')
|
||||
'';
|
||||
in ''
|
||||
machine.start()
|
||||
machine.wait_for_unit("memcached.service")
|
||||
machine.wait_for_open_port(11211)
|
||||
machine.succeed("${testScript}")
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue