]> granicus.if.org Git - pdns/commitdiff
Add root-zone testing
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 9 Apr 2019 14:34:33 +0000 (16:34 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 6 May 2019 10:16:14 +0000 (12:16 +0200)
.circleci/config.yml

index 14f30e719fb77a8c10ec7c19acb1d2dadd36a133..e209390f6dd4ef0a7d7e4ecb57da05cf154a17b3 100644 (file)
@@ -54,6 +54,9 @@ commands:
       skip:
         type: string
         default: ""
+      rootskip:
+        type: string
+        default: ""
       context:
         type: string
         default: ""
@@ -82,6 +85,27 @@ commands:
             PDNSUTIL=<< parameters.prefix >>bin/pdnsutil \
             PDNSCONTROL=<< parameters.prefix >>bin/pdns_control \
             ./start-test-stop 5300 << parameters.context >>
+      - run:
+          workdir: ~/project/regression-tests.rootzone
+          name: Run << parameters.context >> tests for the root zone
+          command: |
+            [ -e ../regression-tests/vars ] && . ../regression-tests/vars
+            rm -rf tests/*/skip
+            for t in << parameters.rootskip >>
+            do
+              touch tests/$t/skip
+            done
+            PDNS=<< parameters.prefix >>sbin/pdns_server \
+            PDNS2=<< parameters.prefix >>sbin/pdns_server \
+            SDIG=<< parameters.prefix >>bin/sdig \
+            NOTIFY=<< parameters.prefix >>bin/pdns_notify \
+            NSEC3DIG=<< parameters.prefix >>bin/nsec3dig \
+            SAXFR=<< parameters.prefix >>bin/saxfr \
+            ZONE2SQL=<< parameters.prefix >>bin/zone2sql \
+            ZONE2LDAP=<< parameters.prefix >>bin/zone2ldap \
+            PDNSUTIL=<< parameters.prefix >>bin/pdnsutil \
+            PDNSCONTROL=<< parameters.prefix >>bin/pdns_control \
+            ./start-test-stop 5300 << parameters.context >>
 
   install-recursor-deps:
     description: "Install all libraries needed for the recursor"