aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-01 12:40:20 +0100
committerGitHub Enterprise <[email protected]>2026-03-01 12:40:20 +0100
commit4d01aaee0a45f4c9f96e8a4925eff696be98de8d (patch)
treea0cefd6ef899f77a98370f52079b86af3db0d070 /xmake.lua
parentsubprocess tracking using Jobs on Windows/hub (#796) (diff)
downloadzen-4d01aaee0a45f4c9f96e8a4925eff696be98de8d.tar.xz
zen-4d01aaee0a45f4c9f96e8a4925eff696be98de8d.zip
added `--verbose` option to zenserver-test and `xmake test` (#798)
* when `--verbose` is specified to zenserver-test, all child process output (typically, zenserver instances) is piped through to stdout. you can also pass `--verbose` to `xmake test` to accomplish the same thing. * this PR also consolidates all test runner `main` function logic (such as from zencore-test, zenhttp-test etc) into central implementation in zencore for consistency and ease of maintenance * also added extended utf8-tests including a fix to `Utf8ToWide()`
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")