diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:36:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:36:22 +0000 |
commit | b88bb292821fd7742604ec4e280acebd9a049f62 (patch) | |
tree | 625e4e19e6619f7481e5a8103f876520950769f6 /distro/deb/tests | |
parent | Initial commit. (diff) | |
download | knot-upstream.tar.xz knot-upstream.zip |
Adding upstream version 3.0.5.upstream/3.0.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | distro/deb/tests/control | 2 | ||||
-rwxr-xr-x | distro/deb/tests/kdig | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/distro/deb/tests/control b/distro/deb/tests/control new file mode 100644 index 0000000..559a8f7 --- /dev/null +++ b/distro/deb/tests/control @@ -0,0 +1,2 @@ +Tests: kdig +Depends: knot-dnsutils, ca-certificates diff --git a/distro/deb/tests/kdig b/distro/deb/tests/kdig new file mode 100755 index 0000000..a2f388e --- /dev/null +++ b/distro/deb/tests/kdig @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +expected=93.184.216.34 +answer=$(kdig +short +tls-ca +tls-hostname=dns.cmrg.net @dns.cmrg.net example.org) + +if [ "$answer" != "$expected" ]; then + printf "expected: %s\ngot: %s\n" "$expected" "$answer" >&2 + kdig +tls-ca +tls-hostname=dns.cmrg.net @dns.cmrg.net example.org +fi |