]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
tests: fixed config tests locking up on error, added test for predict
authorMarek Vavruša <mvavrusa@cloudflare.com>
Thu, 23 Nov 2017 07:40:28 +0000 (23:40 -0800)
committerMarek Vavruša <mvavrusa@cloudflare.com>
Fri, 24 Nov 2017 03:30:29 +0000 (19:30 -0800)
commit52d4f519b699007aa297fdaa682bad8d90d096b6
tree1aed32934d6754029cd2c74df9436cf6631f0451
parentf60e0a538286946edf3c3c1b663b4159e81f94b0
tests: fixed config tests locking up on error, added test for predict

The config tests locked up on error as if error was raised from the
event callback, it would never reach the `quit()` statement, so
server would never close on error.

Added a script to make running these types of tests a little bit nicer
and to allow concurrent execution of config tests.

Added a test for the predict module, that fails on prediction
of unknown types:

```
error: /usr/local/lib/kdns_modules/predict.lua:34: 'struct rr_type' has no member named 'TYPE65535'
```
daemon/lua/config.lua
tests/config/predict/test.cfg [new file with mode: 0644]
tests/config/runtest.sh [new file with mode: 0755]
tests/config/test_config.mk
tests/config/test_utils.lua