]> gitweb.michael.orlitzky.com - haeredes.git/blobdiff - test/shell/manpage-no-append-root.test
test: add a shelltestrunner test suite for the man page examples.
[haeredes.git] / test / shell / manpage-no-append-root.test
diff --git a/test/shell/manpage-no-append-root.test b/test/shell/manpage-no-append-root.test
new file mode 100644 (file)
index 0000000..8b7efce
--- /dev/null
@@ -0,0 +1,9 @@
+# Test the "no-append-root" example from the man page.
+
+# If you add "--no-append-root" to the previous "example.com" example
+# (without adding the trailing dot), then things go wrong.
+echo "example.com" | dist/build/haeredes/haeredes --no-append-root a.iana-servers.net b.iana-servers.net
+>>>
+Domain "example.com" delegates somewhere else: "b.iana-servers.net." "a.iana-servers.net."
+>>>= 0
+