- sudo restart mysql
script:
- ./bootstrap
- - ./configure --with-modules='pipe remote gmysql tinydns random' --with-sqlite3 --enable-unit-tests --enable-remotebackend-http
- - ./configure --with-modules='gmysql mydns tinydns random' --with-sqlite3 --enable-unit-tests
++ - ./configure --with-modules='pipe remote gmysql tinydns random mydns' --with-sqlite3 --enable-unit-tests --enable-remotebackend-http
- make dist
- make -j 4
+ - make check
- cd pdns
- - make testrunner
- - ./testrunner
- cd docs
- make
- cd ../../regression-tests
- ./start-test-stop 5300 gmysql-nsec3-optout
- ./start-test-stop 5300 gmysql-nsec3-optout-presigned
- ./start-test-stop 5300 gmysql-nsec3-narrow
- - ./start-test-stop 5300 tinydns
+ - ./start-test-stop 5300 tinydns
+ - ./start-test-stop 5300 remotebackend-pipe
+ - ./start-test-stop 5300 remotebackend-pipe-dnssec
+ - ./start-test-stop 5300 gmysql nowait 3600
+ - ./start-test-stop 5300 gmysql-presigned nowait 3600
+ - ./start-test-stop 5300 gmysql-nsec3 nowait 3600
+ - ./start-test-stop 5300 gmysql-nsec3-presigned nowait 3600
+ - ./start-test-stop 5300 gmysql-nsec3-narrow nowait 3600
+ - ./start-test-stop 5300 gmysql-nsec3-optout nowait 3600
+ - ./start-test-stop 5300 gmysql-nsec3-optout-presigned nowait 3600
++ - ./start-test-stop 5300 mydns
- cd ../regression-tests.nobackend/
- ./runtests
- test ! -s ./failed_tests
g_anyToTcp = ::arg().mustDo("any-to-tcp");
g_addSuperfluousNSEC3 = ::arg().mustDo("add-superfluous-nsec3-for-old-bind");
- DNSPacket::s_udpTruncationThreshold = ::arg().asNum("udp-truncation-threshold");
+ DNSPacket::s_udpTruncationThreshold = std::max(512, ::arg().asNum("udp-truncation-threshold"));
DNSPacket::s_doEDNSSubnetProcessing = ::arg().mustDo("edns-subnet-processing");
-
+ {
+ std::vector<std::string> codes;
+ stringtok(codes, ::arg()["edns-subnet-option-numbers"], "\t ,");
+ BOOST_FOREACH(std::string &code, codes) {
+ DNSPacket::s_ednssubnetcodes.push_back(boost::lexical_cast<int>(code));
+ }
+ }
#ifndef WIN32
if(!::arg()["chroot"].empty()) {
if(::arg().mustDo("master") || ::arg().mustDo("slave"))
done
$RUNWRAPPER $PDNS --daemon=no --local-port=$port --socket-dir=./ \
- --no-shuffle --launch --launch+=random --launch+=gmysql --gmysql-dnssec \
- --fancy-records --send-root-referral \
- --cache-ttl=0 --no-config \
- --no-shuffle --launch=random,gmysql --gmysql-dnssec \
++ --no-shuffle --launch+=random --launch+=gmysql --gmysql-dnssec \
+ --send-root-referral \
+ --allow-2136-from=127.0.0.0/8 --experimental-rfc2136=yes --experimental-direct-dnskey=yes \
+ --cache-ttl=$cachettl --no-config \
--gmysql-dbname="$GMYSQLDB" \
--gmysql-user="$GMYSQLUSER" \
--gmysql-host="$GMYSQLHOST" \
if [ "$remotesec" = "nsec3" ]; then
remotedosec="yes"
if [ "$narrow" = "narrow" ]; then
- extracontexts="dnssec nsec3 narrow"
- skipreasons="narrow nsec3"
- else
- extracontexts="dnssec nsec3 narrow"
++ extracontexts="dnssec nsec3 narrow"
+ skipreasons="narrow nsec3 nodyndns"
- else
++ else
extracontexts="dnssec nsec3"
- skipreasons="nsec3"
+ skipreasons="nsec3 nodyndns"
fi
- remote_add_param="--remote-dnssec=yes"
- else
+ remote_add_param="--remote-dnssec=yes"
+ else
if [ "$remotesec" = "dnssec" ]; then
remotedosec="yes"
remote_add_param="--remote-dnssec=yes"
$RUNWRAPPER $PDNS --daemon=no --local-port=$port --socket-dir=./ \
--no-shuffle --launch=remote \
- --query-logging --loglevel=9 --cache-ttl=0 --no-config \
+ --query-logging --loglevel=9 --cache-ttl=$cachettl --no-config \
--send-root-referral \
+ --allow-2136-from=127.0.0.0/8 --experimental-rfc2136=yes \
--remote-connection-string="$connstr" $remote_add_param &
-
+
echo "Setting up test database..."
# setup test database
rm -f $testsdir/remote.sqlite3
$RUNWRAPPER $PDNS2 --daemon=no --local-port=$port --socket-dir=./ \
--no-shuffle --launch=gmysql --gmysql-dnssec \
- --fancy-records --send-root-referral \
- --cache-ttl=0 --query-cache-ttl=0 --no-config --slave --retrieval-threads=4 \
+ --send-root-referral \
+ --allow-2136-from=127.0.0.0/8 --experimental-rfc2136=yes \
- --cache-ttl=$cachettl --query-cache-ttl=$cachettl --no-config --slave --retrieval-threads=1 \
++ --cache-ttl=$cachettl --query-cache-ttl=$cachettl --no-config --slave --retrieval-threads=4 \
--gmysql-dbname="$GMYSQL2DB" \
--gmysql-user="$GMYSQL2USER" \
--gmysql-host="$GMYSQL2HOST" \