From 4d01aaee0a45f4c9f96e8a4925eff696be98de8d Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Sun, 1 Mar 2026 12:40:20 +0100 Subject: 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()` --- xmake.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'xmake.lua') 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") -- cgit v1.2.3