summaryrefslogtreecommitdiff
path: root/tests/projects
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-11-26 15:29:03 +0100
committerruki <[email protected]>2025-12-18 09:31:44 +0800
commitc765a2c1cac6ab126efc779eb4c823c5573dd25d (patch)
treece2489bbe8abc8b9cbc807512b641b82d4a506b3 /tests/projects
parent5dcd669f6e3017d6939af6fd391803c13395406a (diff)
(llvm) add runtime dirs to runenvs (for asan and libunwind)
Diffstat (limited to 'tests/projects')
-rw-r--r--tests/projects/c++/modules/test_base.lua5
-rw-r--r--tests/projects/c/llvm_compiler_rt/test.lua7
2 files changed, 10 insertions, 2 deletions
diff --git a/tests/projects/c++/modules/test_base.lua b/tests/projects/c++/modules/test_base.lua
index 0a0d07dae..466a59e98 100644
--- a/tests/projects/c++/modules/test_base.lua
+++ b/tests/projects/c++/modules/test_base.lua
@@ -11,7 +11,7 @@ MSVC_MIN_VER = "14.29"
function _build(check_outdata)
local flags = ""
if ci_is_running() then
- flags = "-vD"
+ flags = "-vD"
end
if check_outdata then
local outdata
@@ -101,6 +101,9 @@ function build_tests(toolchain_name, opt)
if opt.flags then
flags = " " .. table.concat(opt.flags, " ")
end
+ if ci_is_running() then
+ flags = flags .. " -vD"
+ end
os.exec("xmake clean -a")
os.exec("xmake f" .. platform .. "--toolchain=" .. toolchain_name .. runtimes .. "-c --yes " .. policies .. flags)
diff --git a/tests/projects/c/llvm_compiler_rt/test.lua b/tests/projects/c/llvm_compiler_rt/test.lua
index b2b39f1a8..ee0854e3a 100644
--- a/tests/projects/c/llvm_compiler_rt/test.lua
+++ b/tests/projects/c/llvm_compiler_rt/test.lua
@@ -2,7 +2,7 @@ import("lib.detect.find_tool")
import("core.tool.toolchain")
import("utils.ci.is_running", {alias = "ci_is_running"})
-function main(t)
+function run_test(toolchain_name)
local flags = ""
if ci_is_running() then
flags = "-vD"
@@ -17,3 +17,8 @@ function main(t)
os.exec("xmake f --toolchain=llvm -c --yes " .. flags)
os.run("xmake -r " .. flags)
end
+
+function main(t)
+ run_test("llvm")
+ run_test("clang")
+end