summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/test_msvc.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2022-12-03 16:31:07 +0100
committerArthur LAURENT <[email protected]>2022-12-04 17:11:41 +0100
commit624490c743ac474ddca3c3cdb93a9fbff8e26dc5 (patch)
tree1eeecf76d24e91dd8b9f3f91c3067a00ab04c526 /tests/projects/c++/modules/test_msvc.lua
parent49d732c29c8e97ad09fbf35effa1b7bdeda1c727 (diff)
add tests
Diffstat (limited to 'tests/projects/c++/modules/test_msvc.lua')
-rw-r--r--tests/projects/c++/modules/test_msvc.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/projects/c++/modules/test_msvc.lua b/tests/projects/c++/modules/test_msvc.lua
new file mode 100644
index 000000000..d51d3e3ef
--- /dev/null
+++ b/tests/projects/c++/modules/test_msvc.lua
@@ -0,0 +1,18 @@
+import("lib.detect.find_tool")
+import("core.base.semver")
+
+function _build()
+ local ci = (os.getenv("CI") or os.getenv("GITHUB_ACTIONS") or ""):lower()
+ if ci == "true" then
+ os.exec("xmake -rvD")
+ else
+ os.exec("xmake -r")
+ end
+end
+
+function main(t)
+ if is_subhost("windows") then
+ os.exec("xmake f -c")
+ _build()
+ end
+end