diff options
| author | Stefan Boberg <[email protected]> | 2023-11-17 10:30:51 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-17 10:30:51 +0100 |
| commit | 68915961c397c9f06930f80677d131a25d045962 (patch) | |
| tree | 91a68aa26506e9314738b566645572faf76a1668 /xmake.lua | |
| parent | removed zen runtests command (#551) (diff) | |
| download | zen-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.lua | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 = {} |