mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixosTests.avahi: add avahi-with-resolved
This allows testing avahi works with resolved being enabled, as a regression test for https://github.com/NixOS/nixpkgs/pull/99530.
This commit is contained in:
parent
8294af0284
commit
a61ca0373b
2 changed files with 13 additions and 1 deletions
|
@ -26,6 +26,7 @@ in
|
||||||
agda = handleTest ./agda.nix {};
|
agda = handleTest ./agda.nix {};
|
||||||
atd = handleTest ./atd.nix {};
|
atd = handleTest ./atd.nix {};
|
||||||
avahi = handleTest ./avahi.nix {};
|
avahi = handleTest ./avahi.nix {};
|
||||||
|
avahi-with-resolved = handleTest ./avahi.nix { networkd = true; };
|
||||||
babeld = handleTest ./babeld.nix {};
|
babeld = handleTest ./babeld.nix {};
|
||||||
bazarr = handleTest ./bazarr.nix {};
|
bazarr = handleTest ./bazarr.nix {};
|
||||||
bcachefs = handleTestOn ["x86_64-linux"] ./bcachefs.nix {}; # linux-4.18.2018.10.12 is unsupported on aarch64
|
bcachefs = handleTestOn ["x86_64-linux"] ./bcachefs.nix {}; # linux-4.18.2018.10.12 is unsupported on aarch64
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
|
{ system ? builtins.currentSystem
|
||||||
|
, config ? {}
|
||||||
|
, pkgs ? import ../.. { inherit system config; }
|
||||||
|
# bool: whether to use networkd in the tests
|
||||||
|
, networkd ? false }:
|
||||||
|
|
||||||
# Test whether `avahi-daemon' and `libnss-mdns' work as expected.
|
# Test whether `avahi-daemon' and `libnss-mdns' work as expected.
|
||||||
import ./make-test-python.nix ({ pkgs, ... } : {
|
import ./make-test-python.nix ({ ... } : {
|
||||||
name = "avahi";
|
name = "avahi";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
maintainers = [ eelco ];
|
maintainers = [ eelco ];
|
||||||
|
@ -17,6 +23,11 @@ import ./make-test-python.nix ({ pkgs, ... } : {
|
||||||
publish.workstation = true;
|
publish.workstation = true;
|
||||||
extraServiceFiles.ssh = "${pkgs.avahi}/etc/avahi/services/ssh.service";
|
extraServiceFiles.ssh = "${pkgs.avahi}/etc/avahi/services/ssh.service";
|
||||||
};
|
};
|
||||||
|
} // pkgs.lib.optionalAttrs (networkd) {
|
||||||
|
networking = {
|
||||||
|
useNetworkd = true;
|
||||||
|
useDHCP = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
one = cfg;
|
one = cfg;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue