First make sure PowerDNS has access to the testing zone, which is in the
file 'testzone'. Use the 'zone2sql' tool to create sql and feed it to your
-database.
+database if you want to test one of the sql backends.
-Set the 'nameserver' variable to the IP address of the nameserver you want
-to test:
-
-$ nameserver=127.0.0.1 ./runtests
-
-Run PowerDNS as:
+Run PowerDNS as (to test gmysql):
$ ../pdns/pdns_server --daemon=no --local-port=5300 --socket-dir=./ \
--no-shuffle --launch=gmysql --gmysql-dbname=pdnstest --gmysql-user=root \
--fancy-records --query-logging --send-root-referral --loglevel=9 \
--cache-ttl=0 --no-config
-or:
-
+or (to test bind, without DNSSEC):
$ ../pdns/pdns_server --daemon=no --local-port=5300 --socket-dir=./ \
--no-shuffle --launch=bind --bind-config=./named.conf \
--fancy-records --query-logging --send-root-referral --loglevel=9 \
--cache-ttl=0 --no-config
+or (to test bind,gsqlite3):
+
+$ ./bind-gsqlite3-setup
+$ ../pdns/pdns_server --daemon=no --local-port=5300 --socket-dir=./ \
+--no-shuffle --launch=bind,gsqlite3 --bind-config=./named.conf \
+--gsqlite3-database=./powerdns.sqlite3 --gsqlite3-dnssec \
+--fancy-records --query-logging --send-root-referral --loglevel=9 \
+--cache-ttl=0 --no-config
+
+Set the 'nameserver' and 'port' variables to point to your pdns_server
+instance:
+
+$ nameserver=127.0.0.1 port=5300 ./runtests
-The BIND backend can't do MBOXFW
+The BIND backend can't do MBOXFW. The 'any-query' test is known to fail
+with bind,gsqlite3.
Analysing results
-----------------
--- /dev/null
+#!/bin/sh
+rm -f powerdns.sqlite3
+sqlite3 powerdns.sqlite3 < ../pdns/no-dnssec.schema.sqlite3.sql
+sqlite3 powerdns.sqlite3 < ../pdns/dnssec.schema.sqlite3.sql
+for zone in $(grep zone named.conf | cut -f2 -d\")
+do
+ sqlite3 powerdns.sqlite3 "INSERT INTO DOMAINS (name, type) VALUES('$zone','NATIVE');"
+ pdnssec --config-dir=. secure-zone $zone 2>&1
+done
+++ /dev/null
-0 enum.test.com. IN NAPTR 3600 100 50 "u" "e2u+sip" "" testuser@domain.com.
-Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
-Reply to question for qname='enum.test.com.', qtype=NAPTR
#!/bin/bash
PATH=.:$PATH
-rm -f test-results failed_tests passed_tests
+make -C ../pdns sdig || false
+
+rm -f test-results failed_tests passed_tests skipped_tests */real_result */diff
passed=0
failed=0
skipped=0
-for a in $(find . -type d | grep -v ^.$ | sed s:^./:: | grep -v .svn)
+for a in $(find . -type d | grep -v ^.$ | sed s:^./:: | grep -v .svn | grep -v ^confdir | LC_ALL=C sort)
do
echo "$a: "
cat $a/description