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' ```
Showing
- daemon/lua/config.lua 1 addition, 1 deletiondaemon/lua/config.lua
- tests/config/predict/test.cfg 18 additions, 0 deletionstests/config/predict/test.cfg
- tests/config/runtest.sh 11 additions, 0 deletionstests/config/runtest.sh
- tests/config/test_config.mk 11 additions, 13 deletionstests/config/test_config.mk
- tests/config/test_utils.lua 16 additions, 7 deletionstests/config/test_utils.lua
Please register or sign in to comment