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
28
nixos/tests/novacomd.nix
Normal file
28
nixos/tests/novacomd.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import ./make-test-python.nix ({ pkgs, ...} : {
|
||||
name = "novacomd";
|
||||
meta = with pkgs.lib.maintainers; {
|
||||
maintainers = [ dtzWill ];
|
||||
};
|
||||
|
||||
nodes.machine = { ... }: {
|
||||
services.novacomd.enable = true;
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
machine.wait_for_unit("novacomd.service")
|
||||
|
||||
with subtest("Make sure the daemon is really listening"):
|
||||
machine.wait_for_open_port(6968)
|
||||
machine.succeed("novacom -l")
|
||||
|
||||
with subtest("Stop the daemon, double-check novacom fails if daemon isn't working"):
|
||||
machine.stop_job("novacomd")
|
||||
machine.fail("novacom -l")
|
||||
|
||||
with subtest("Make sure the daemon starts back up again"):
|
||||
machine.start_job("novacomd")
|
||||
# make sure the daemon is really listening
|
||||
machine.wait_for_open_port(6968)
|
||||
machine.succeed("novacom -l")
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue