aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake.lua b/xmake.lua
index 1416fbb6a..10f5c9c3a 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -350,7 +350,8 @@ task("test")
{'r', "run", "kv", "all", "Run test(s) - comma-separated", " - all", " - core", " - http", " - util", " - store", " - remotestore", " - server", " - integration"},
{'j', "junit", "k", nil, "Enable junit report output"},
{'n', "noskip", "k", nil, "Run skipped tests (passes --no-skip to doctest)"},
- {nil, "repeat", "kv", nil, "Repeat tests N times (stops on first failure)"}
+ {nil, "repeat", "kv", nil, "Repeat tests N times (stops on first failure)"},
+ {'v', "verbose", "k", nil, "Route child process output to stdout (zenserver-test)"}
}
}
on_run(function()
@@ -421,6 +422,7 @@ task("test")
local use_junit_reporting = option.get("junit")
local use_noskip = option.get("noskip")
+ local use_verbose = option.get("verbose")
local repeat_count = tonumber(option.get("repeat")) or 1
local junit_report_files = {}
@@ -535,6 +537,9 @@ task("test")
if use_noskip then
cmd = string.format("%s --no-skip", cmd)
end
+ if use_verbose and name == "integration" then
+ cmd = string.format("%s --verbose", cmd)
+ end
-- Tell TestListener where to write the summary
local summary_file = path.join(summary_dir, target .. ".txt")