Verified Commit 8e533979 authored by Petr Špaček's avatar Petr Špaček
Browse files

kresd: measure test coverage for Lua code

To measure test coverage of C code, recompile resolver with
CFLAGS="--coverage". This template tweak will gather Lua stats whenever
luacov is available.
parent a5cd67c9
Pipeline #29422 passed with stage
in 46 seconds
-- measure code coverage if the module is available
local ok, runner = pcall(require, 'luacov.runner')
if ok then
statsfile = '{{INSTALL_DIR}}/luacov.stats.out',
exclude = {'test', 'tapered', 'lua/5.1'},
net = { '{{SELF_ADDR}}' }
modules = {'stats', 'policy', 'hints'}
-- test. domain is used by some tests, allow it
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment