tests: use new runner

This commit is contained in:
Benoit Pierre authored and Frans de Jonge committed 2024-11-25 22:55:57 +01:00
1 parent 8c839d9ead
commit ea5d424868
10 files changed
+91 -64

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#!./luajit
local stats = require("luacov.stats")
local runner = require("luacov.runner")
local outfile = nil
local aggregated = {}
for i, a in ipairs(arg) do
if outfile then
-- print('merging luacov stats: '..(a))
for name, file_data in pairs(stats.load(a)) do
if aggregated[name] then
runner.update_stats(aggregated[name], file_data)
else
aggregated[name] = file_data
end
end
else
outfile = a
end
end
-- print('saving luacov stats '..outfile)
stats.save(outfile, aggregated)