]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
tests/dnstap: fix, refactor and integrate into meson and CI
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 5 Jan 2021 15:59:48 +0000 (16:59 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 15 Jan 2021 13:52:05 +0000 (14:52 +0100)
commit88f11d650a7b0fbd6c081983a136383beba7b4ca
tree9e3956193f7bde7ed01848378618fd42240e7d87
parent38b53e84cbd89edb1020f4a6b22b82001e24721d
tests/dnstap: fix, refactor and integrate into meson and CI

They need one go package which I can't find even in Debian,
so it probably can't work without network access.
The new dnstap in extra_tests runs if dnstap is built and go is found.
It also tries to keep the source tree clean.

Now both query and reply messages are tested.

In CI (after caching go deps in image) this tests only takes slightly
more time than the longest config.* tests, so that seems OK.
Even so, it's not added into the valgrind variant, as compilation
of the test still isn't split away from the run itself.
.gitignore
.gitlab-ci.yml
tests/dnstap/meson.build [new file with mode: 0644]
tests/dnstap/src/dnstap-test/config
tests/dnstap/src/dnstap-test/dnstap.mk [deleted file]
tests/dnstap/src/dnstap-test/main.go
tests/dnstap/src/dnstap-test/run.sh [new file with mode: 0755]
tests/meson.build