summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-16 00:53:26 +0800
committerruki <[email protected]>2024-07-16 00:53:26 +0800
commit79fffb69b3bff30eacc42e0547c53041b207c75d (patch)
tree01d7513716dbda1d8e706b8680e2120e27e5c640
parent81640975b434a293cabed7d758c599a2668a6efe (diff)
add test.lua for install
-rw-r--r--tests/actions/install/test.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/actions/install/test.lua b/tests/actions/install/test.lua
new file mode 100644
index 000000000..78173bac7
--- /dev/null
+++ b/tests/actions/install/test.lua
@@ -0,0 +1,8 @@
+function main(t)
+ if is_host("windows", "linux", "macosx") and os.arch():startswith("x") then
+ os.vrun("xmake -y")
+ os.vrun("xmake run app")
+ os.vrun("xmake install -o build/usr")
+ os.vrun("./build/usr/app/bin/app" .. (is_host("windows") and ".exe" or ""))
+ end
+end