summaryrefslogtreecommitdiff
path: root/tests/build.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/build.lua')
-rw-r--r--tests/build.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/build.lua b/tests/build.lua
index 918b00133..e72744b60 100644
--- a/tests/build.lua
+++ b/tests/build.lua
@@ -1,3 +1,6 @@
+-- imports
+import("privilege.sudo")
+
-- main entry
function main(argv)
@@ -5,6 +8,10 @@ function main(argv)
os.exec("xmake m -b")
os.exec("xmake f -c")
os.exec("xmake")
+ if os.host() ~= "windows" then
+ os.exec("xmake install -o /tmp -a --verbose --backtrace")
+ os.exec("xmake uninstall --installdir=/tmp --verbose --backtrace")
+ end
os.exec("xmake p")
os.exec("xmake c")
os.exec("xmake f -m release")
@@ -17,8 +24,16 @@ function main(argv)
os.exec("xmake m -l")
os.exec("xmake f --cc=gcc --cxx=g++")
os.exec("xmake m buildtest")
+ if os.host() ~= "windows" then
+ sudo.exec("xmake install")
+ sudo.exec("xmake uninstall")
+ end
os.exec("xmake f --cc=clang --cxx=clang++ --ld=clang++ --verbose --backtrace")
os.exec("xmake m buildtest")
+ if os.host() ~= "windows" then
+ sudo.exec("xmake install --all -v --backtrace")
+ sudo.exec("xmake uninstall -v --backtrace")
+ end
os.exec("xmake m -d buildtest")
-- test iphoneos?