From 79fffb69b3bff30eacc42e0547c53041b207c75d Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 16 Jul 2024 00:53:26 +0800 Subject: add test.lua for install --- tests/actions/install/test.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/actions/install/test.lua 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 -- cgit v1.3.1