]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #8634 from rgacogne/auth-circle-unit-tests
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 21 Feb 2020 08:57:53 +0000 (09:57 +0100)
committerGitHub <noreply@github.com>
Fri, 21 Feb 2020 08:57:53 +0000 (09:57 +0100)
auth: Build and run the unit tests in Circle CI

.circleci/config.yml

index 5275fa57344a49f00f3d3f0db7c8992945b92867..1cb80c3832ae7119ded0b74473fd75678350a0d4 100644 (file)
@@ -70,6 +70,7 @@ commands:
             apt-get -y -qq install \
               bc \
               bind9utils \
+              curl \
               default-jre-headless \
               dnsutils \
               ldnsutils \
@@ -529,6 +530,9 @@ jobs:
               --with-modules='bind lmdb ldap gmysql gsqlite3 gpgsql godbc random tinydns lua2' \
               --enable-systemd \
               --enable-tools \
+              --enable-unit-tests \
+              --enable-backend-unit-tests \
+              --enable-fuzz-targets \
               --with-lmdb=/usr \
               --with-libsodium \
               --prefix=/opt/pdns-auth \
@@ -538,6 +542,9 @@ jobs:
           command: make -j3 -k
       - save-ccache-cache:
           product: auth
+      - run:
+          name: Run unit tests
+          command: PDNS_TEST_NO_IPV6=1 make check || (cat pdns/test-suite.log; false)
       - run:
           name: Install the binaries
           command: make install
@@ -800,7 +807,7 @@ jobs:
       - image: debian:buster
     steps:
       - auth-regress-setup
-      - run: apt-get install -y -qq jq curl
+      - run: apt-get install -y -qq jq
       - auth-regress:
           context: lmdb-nodnssec-both
       - auth-regress:
@@ -1066,7 +1073,6 @@ jobs:
             CFLAGS="-O1 -Werror=vla -Wformat=2 -Werror=format-security" \
             CXXFLAGS="-O1 -Werror=vla -Wformat=2 -Werror=format-security -Wp,-D_GLIBCXX_ASSERTIONS" \
             ./configure \
-              --disable-lua-records \
               --disable-systemd \
               --with-modules='bind lmdb ldap gmysql gsqlite3 gpgsql godbc random tinydns' \
               --enable-tools \