dnsmasq: add some nixos tests to passthru.tests

no specific nixos test (yet) so we'll have to make do with
ones that use dnsmasq on the periphery
This commit is contained in:
Robert Scott 2022-09-30 19:59:41 +01:00
parent 2fc8634038
commit 4a46a86bcf

View file

@ -2,6 +2,7 @@
, libidn, libnetfilter_conntrack, buildPackages
, dbusSupport ? stdenv.isLinux
, dbus
, nixosTests
}:
with lib;
@ -77,6 +78,15 @@ stdenv.mkDerivation rec {
++ optionals dbusSupport [ dbus ]
++ optionals stdenv.isLinux [ libnetfilter_conntrack ];
passthru.tests = {
prometheus-exporter = nixosTests.prometheus-exporters.dnsmasq;
# these tests use dnsmasq incidentally
inherit (nixosTests) dnscrypt-proxy2;
kubernetes-dns-single = nixosTests.kubernetes.dns-single-node;
kubernetes-dns-multi = nixosTests.kubernetes.dns-multi-node;
};
meta = {
description = "An integrated DNS, DHCP and TFTP server for small networks";
homepage = "https://www.thekelleys.org.uk/dnsmasq/doc.html";