aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-18 09:16:42 +0100
committerGitHub Enterprise <[email protected]>2026-03-18 09:16:42 +0100
commit973fad4e4bdb03a852d40360b0a5590a370deb16 (patch)
tree530eee006d3e6c77043968719e9243ef4717e8da /scripts
parentChangelog (diff)
parentfix for GHES failing on upload-artifacts@v3 (#856) (diff)
downloadzen-973fad4e4bdb03a852d40360b0a5590a370deb16.tar.xz
zen-973fad4e4bdb03a852d40360b0a5590a370deb16.zip
Merge branch 'main' into zs/long-filename-improvement
Diffstat (limited to 'scripts')
-rw-r--r--scripts/test.lua17
-rw-r--r--scripts/test_scripts/metadatas/PS5Client.json9
2 files changed, 23 insertions, 3 deletions
diff --git a/scripts/test.lua b/scripts/test.lua
index df1218ce8..3c18225fb 100644
--- a/scripts/test.lua
+++ b/scripts/test.lua
@@ -86,11 +86,22 @@ function main()
arch = "x86_64"
end
+ local want_asan = option.get("asan") == true
+ local have_asan = config.get("asan") == true
+ local want_tsan = option.get("tsan") == true
+ local have_tsan = config.get("tsan") == true
+ local want_msan = option.get("msan") == true
+ local have_msan = config.get("msan") == true
+
-- Only reconfigure if current config doesn't already match
- if config.get("mode") ~= "debug" or config.get("plat") ~= plat or config.get("arch") ~= arch then
+ if config.get("mode") ~= "debug" or config.get("plat") ~= plat or config.get("arch") ~= arch
+ or want_asan ~= have_asan or want_tsan ~= have_tsan or want_msan ~= have_msan then
local toolchain_flag = config.get("toolchain") and ("--toolchain=" .. config.get("toolchain")) or ""
local sdk_flag = config.get("sdk") and ("--sdk=" .. config.get("sdk")) or ""
- os.exec("xmake config -y -c -m debug -p %s -a %s %s %s", plat, arch, toolchain_flag, sdk_flag)
+ local asan_flag = want_asan and "--asan=y" or ""
+ local tsan_flag = want_tsan and "--tsan=y" or ""
+ local msan_flag = want_msan and "--msan=y" or ""
+ os.exec("xmake config -y -c -m debug -p %s -a %s %s %s %s %s %s", plat, arch, toolchain_flag, sdk_flag, asan_flag, tsan_flag, msan_flag)
end
-- Build targets we're going to run
@@ -104,7 +115,7 @@ function main()
local use_junit_reporting = option.get("junit")
local use_noskip = option.get("noskip")
- local use_verbose = option.get("verbose")
+ local use_verbose = option.get("output")
local repeat_count = tonumber(option.get("repeat")) or 1
local extra_args = option.get("arguments") or {}
local junit_report_files = {}
diff --git a/scripts/test_scripts/metadatas/PS5Client.json b/scripts/test_scripts/metadatas/PS5Client.json
new file mode 100644
index 000000000..55ca338a2
--- /dev/null
+++ b/scripts/test_scripts/metadatas/PS5Client.json
@@ -0,0 +1,9 @@
+{
+ "name": "++Fortnite+Main-CL-50966326 PS4Client",
+ "branch": "ZenBuildTest2",
+ "baselineBranch": "ZenBuildTest2",
+ "platform": "PS5",
+ "project": "Fortnite",
+ "changelist": 50966326,
+ "buildType": "staged-build"
+}