From 47882ebdc9226e02d15c044730262c4dd5f88562 Mon Sep 17 00:00:00 2001 From: Peter Conrad Date: Sat, 30 May 2020 18:19:52 +0200 Subject: [PATCH 1/9] Added auto-build action --- .github/workflows/build-and-test.yml | 53 ++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/build-and-test.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..fea6da7 --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,53 @@ +name: Github Autobuild +on: [ push, pull_request ] +jobs: + doIt: + name: Build and run tests + runs-on: ubuntu-latest + steps: + - name: Prepare environment + run: | + sudo apt-get install -y cpanminus libcrypt-openssl-rsa-perl ucspi-tcp + sudo cpanm -i Digest::SHA1 + - name: Check out sources + uses: actions/checkout@v2 + - name: Make tinydnssec + run: | + make + - name: Download djbdns and dependencies + run: | + curl -sSO http://cr.yp.to/djbdns/djbdns-1.05.tar.gz + curl -sSO http://www.fefe.de/dns/djbdns-1.05-test28.diff.xz + curl -sSO http://www.tinydnssec.org/djbdns-ipv6-make.patch + - name: Unpack and patch sources + run: | + mkdir -p _build + cd _build + tar xfz ../djbdns-1.05.tar.gz + cd djbdns-1.05 + tar xfj ../../tinydnssec.tar.bz2 + xzcat ../../djbdns-1.05-test28.diff.xz | patch -p1 + patch -p0 <../../djbdns-ipv6-make.patch + patch -p1 <../../djbdns-1.05-dnssec.patch + - name: Configure + run: | + cd _build/djbdns-1.05 + echo cc --include /usr/include/errno.h >conf-cc + - name: Build + run: | + cd _build/djbdns-1.05 + make + - name: Run unit-tests + run: | + cd _build/djbdns-1.05 + ./run-tests.sh + - name: Run UDP tests + run: | + cd _build/djbdns-1.05 + sudo IP=127.0.0.3 ROOT="`pwd`" UID=1 GID=1 ./tinydns & + SERVER=127.0.0.3 ./run-tests.sh -u + - name: Run TCP tests + run: | + cd _build/djbdns-1.05 + sudo ROOT="`pwd`" UID=1 GID=1 tcpserver -HRl localhost 127.0.0.3 53 ./axfrdns & + SERVER=127.0.0.3 ./run-tests.sh -t From 33ac20cf0502daae16039005e896d026ca9a7766 Mon Sep 17 00:00:00 2001 From: Peter Conrad Date: Sat, 30 May 2020 20:22:02 +0200 Subject: [PATCH 2/9] Add full link to makefile patch --- INSTALL.tinydnssec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/INSTALL.tinydnssec b/INSTALL.tinydnssec index b9784a7..265d3f4 100644 --- a/INSTALL.tinydnssec +++ b/INSTALL.tinydnssec @@ -11,7 +11,8 @@ to install before the tinydnssec patch applies: Unfortunately, fefe refuses to name a license for this patch, which means that I cannot redistribute it. -2. My own fixes to the Makefile (IPv6-related): djbdns-ipv6-make.patch +2. My own fixes to the Makefile (IPv6-related): + http://www.tinydnssec.org/djbdns-ipv6-make.patch Build ----- From 1c49df18b585bccdd7d868b0c97d35cc139d0e03 Mon Sep 17 00:00:00 2001 From: Peter Conrad Date: Sun, 31 May 2020 08:55:00 +0200 Subject: [PATCH 3/9] Added test to reproduce wildcard shadowing bug --- test/a-44 | 10 ++++++++++ test/a-45 | 10 ++++++++++ test/a-46 | 5 +++++ test/a-47 | 5 +++++ test/data | 10 ++++++++++ test/q-44 | 2 ++ test/q-45 | 2 ++ test/q-46 | 2 ++ test/q-47 | 2 ++ 9 files changed, 48 insertions(+) create mode 100644 test/a-44 create mode 100644 test/a-45 create mode 100644 test/a-46 create mode 100644 test/a-47 create mode 100644 test/q-44 create mode 100644 test/q-45 create mode 100644 test/q-46 create mode 100644 test/q-47 diff --git a/test/a-44 b/test/a-44 new file mode 100644 index 0000000..4b08bd3 --- /dev/null +++ b/test/a-44 @@ -0,0 +1,10 @@ + bytes, 1+2+5+1 records, response, authoritative, noerror +query: A 1.bug-202005.xx +answer: 1.bug-202005.xx 86400 RRSIG A 7 2 86400