|
|
@ -17,6 +17,7 @@ local long_opts = {
|
|
|
|
count = 'n',
|
|
|
|
count = 'n',
|
|
|
|
tags = 't',
|
|
|
|
tags = 't',
|
|
|
|
fuzz = 'f',
|
|
|
|
fuzz = 'f',
|
|
|
|
|
|
|
|
run = 'r',
|
|
|
|
bench = 'b',
|
|
|
|
bench = 'b',
|
|
|
|
metric = 'm',
|
|
|
|
metric = 'm',
|
|
|
|
select = 's',
|
|
|
|
select = 's',
|
|
|
@ -26,7 +27,7 @@ local long_opts = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
local sep = require('go.utils').sep()
|
|
|
|
local sep = require('go.utils').sep()
|
|
|
|
local short_opts = 'a:cC:b:fFmn:pst:rv'
|
|
|
|
local short_opts = 'a:cC:b:fFmn:pst:r:v'
|
|
|
|
local bench_opts = { '-benchmem', '-cpuprofile', 'profile.out' }
|
|
|
|
local bench_opts = { '-benchmem', '-cpuprofile', 'profile.out' }
|
|
|
|
|
|
|
|
|
|
|
|
local is_windows = utils.is_windows()
|
|
|
|
local is_windows = utils.is_windows()
|
|
|
@ -209,6 +210,7 @@ local function cmd_builder(path, args)
|
|
|
|
table.insert(cmd, optarg['P'])
|
|
|
|
table.insert(cmd, optarg['P'])
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log(optarg)
|
|
|
|
if optarg['r'] then
|
|
|
|
if optarg['r'] then
|
|
|
|
log('run test', optarg['r'])
|
|
|
|
log('run test', optarg['r'])
|
|
|
|
table.insert(cmd, '-test.run')
|
|
|
|
table.insert(cmd, '-test.run')
|
|
|
|