diff options
author | Petr Špaček <petr.spacek@nic.cz> | 2020-07-08 09:21:09 +0200 |
---|---|---|
committer | Tomas Krizek <tomas.krizek@nic.cz> | 2020-12-08 18:15:01 +0100 |
commit | db4f59b1bfc2eb2f581f28b8eed61dfc35abacc2 (patch) | |
tree | 4e26a47e7f686409806d38fd9dee3572261808f2 /tests/config | |
parent | tests: sort config test order in modules/meson.build (diff) | |
download | knot-resolver-db4f59b1bfc2eb2f581f28b8eed61dfc35abacc2.tar.xz knot-resolver-db4f59b1bfc2eb2f581f28b8eed61dfc35abacc2.zip |
tests: detect empty config test sets
Diffstat (limited to 'tests/config')
-rw-r--r-- | tests/config/test.cfg | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/config/test.cfg b/tests/config/test.cfg index f961ee4d..9efcaf9c 100644 --- a/tests/config/test.cfg +++ b/tests/config/test.cfg @@ -32,11 +32,14 @@ assert(type(tests) == 'table', local runtest = require('test_utils').test worker.coroutine(function () + local at_least_one_test = false for idx, t in ipairs(tests) do assert(type(t) == 'function', string.format('test table idx %d in file %s' .. 'is not a function', idx, env.TEST_FILE)) + at_least_one_test = true runtest(t) end + assert(at_least_one_test, 'test set is empty?! a typo in function name?') done() end) |