tests: use new runner
This commit is contained in:
1 parent
8c839d9ead
commit
ea5d424868
10 files changed
+91
-64
No files matched your search
Executable
+24
@@ -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)
|
||||
Reference in new issue
Block a user