Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tinydns: test more requests #123131

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion nixos/tests/tinydns.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import ./make-test-python.nix ({ lib, ...} : {
testScript = ''
nameserver.start()
nameserver.wait_for_unit("tinydns.service")
nameserver.succeed("host bla.foo.bar 192.168.1.1 | grep '1\.2\.3\.4'")
for loop in range(100):
nameserver.succeed("host bla.foo.bar 192.168.1.1 | grep '1\.2\.3\.4'")
'';
})
6 changes: 5 additions & 1 deletion pkgs/tools/networking/djbdns/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, glibc, dns-root-data } :
{ lib, stdenv, fetchurl, glibc, dns-root-data, nixosTests } :

let
version = "1.05";
Expand Down Expand Up @@ -41,6 +41,10 @@ stdenv.mkDerivation {
rm -rv djbdns-man;
'';

passthru.tests = {
tinydns = nixosTests.tinydns;
};

meta = with lib; {
description = "A collection of Domain Name System tools";
longDescription = "Includes software for all the fundamental DNS operations: DNS cache: finding addresses of Internet hosts; DNS server: publishing addresses of Internet hosts; and DNS client: talking to a DNS cache.";
Expand Down