aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-11-17 10:30:51 +0100
committerGitHub <[email protected]>2023-11-17 10:30:51 +0100
commit68915961c397c9f06930f80677d131a25d045962 (patch)
tree91a68aa26506e9314738b566645572faf76a1668 /xmake.lua
parentremoved zen runtests command (#551) (diff)
downloadzen-68915961c397c9f06930f80677d131a25d045962.tar.xz
zen-68915961c397c9f06930f80677d131a25d045962.zip
use dynamic port assignment for tests (#545)
this change replaces hard-coded port numbers in tests with dynamically assigned ports, to avoid potential issues around socket lifetimes and re-use policies
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake.lua b/xmake.lua
index ea0f9cd9c..3cf4815f9 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -234,12 +234,19 @@ task("test")
print(os.exec("xmake"))
local tests = {}
+ local found_match = false
+
for name, test in pairs(available_tests) do
if name == testname or testname == "all" then
tests[name] = test
+ found_match = true
end
end
+ if not found_match then
+ raise("no tests match specification: '%s'", testname)
+ end
+
local use_junit_reporting = option.get("junit")
local junit_report_files = {}