summaryrefslogtreecommitdiffstats
path: root/debian/tests/kdig
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:53:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:53:35 +0000
commit46ec4c5ae30e9137e303a1f7187da16da6378eb4 (patch)
tree94a4a825604057e5fda94b7249d8310605fe1c62 /debian/tests/kdig
parentAdding upstream version 2.7.6. (diff)
downloadknot-debian.tar.xz
knot-debian.zip
Adding debian version 2.7.6-2.debian/2.7.6-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/kdig')
-rwxr-xr-xdebian/tests/kdig11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/tests/kdig b/debian/tests/kdig
new file mode 100755
index 0000000..a2f388e
--- /dev/null
+++ b/debian/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