diff options
Diffstat (limited to 'tests/projects')
| -rw-r--r-- | tests/projects/c++/modules/test_base.lua | 5 | ||||
| -rw-r--r-- | tests/projects/c/llvm_compiler_rt/test.lua | 7 |
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 |
