]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
document dnsdist regression tests, make it possible to run only part of the regressio...
authorbert hubert <bert.hubert@netherlabs.nl>
Sat, 20 Feb 2016 20:56:03 +0000 (21:56 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sat, 20 Feb 2016 20:56:55 +0000 (21:56 +0100)
regression-tests.dnsdist/README [new file with mode: 0644]
regression-tests.dnsdist/runtests

diff --git a/regression-tests.dnsdist/README b/regression-tests.dnsdist/README
new file mode 100644 (file)
index 0000000..09780c5
--- /dev/null
@@ -0,0 +1,18 @@
+There are two ways to run these tests. The automated way is ./runtests which
+tries to pick up a dnsdist binary built from a distributed tarball in
+../pdns/dnsdistdist/dnsdist-*/dnsdist
+
+If this is not the binary you want to test, use something like:
+
+DNSDISTBIN=../pdns/dnsdistdist/dnsdist ./runtests
+
+The tests are self-contained and require no further nameservers to be
+installed.
+
+However, do make sure to build a dnsdist with libsodium and dnscrypt support
+as otherwise some tests will fail.
+
+To run a specific test, use something like:
+
+./runtests test_Advanced.py:TestAdvancedSpoof.testSpoofActionMultiA
+
index fb53a6b2acd9b034bbc64ba195a39e7a0bc30f57..8bd5cd3e5ee0063739100a896870853e0b523419 100755 (executable)
@@ -16,4 +16,4 @@ set -e
 if [ "${PDNS_DEBUG}" = "YES" ]; then
   set -x
 fi
-nosetests --with-xunit
+nosetests --with-xunit $@