summaryrefslogtreecommitdiff
path: root/tests/build.lua
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-23 20:04:56 +0800
committerTitanSnow <[email protected]>2017-05-23 20:04:56 +0800
commit36a48f283a68c3f95cab2e4250fb09155a64d406 (patch)
tree05a0d279b7fdffe235937fd6d78bc8e239b19e5b /tests/build.lua
parent550e0a96ce87a164d6a74b915d4ffa49ac9455fd (diff)
fix tests
Diffstat (limited to 'tests/build.lua')
-rw-r--r--tests/build.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/build.lua b/tests/build.lua
index 1e18dbf1f..12c23b7c5 100644
--- a/tests/build.lua
+++ b/tests/build.lua
@@ -6,31 +6,31 @@ function main(argv)
os.exec("$(xmake) f -c")
os.exec("$(xmake)")
if os.host() ~= "windows" then
- os.exec("sudo $(xmake) install")
- os.exec("sudo $(xmake) uninstall")
+ 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")
os.exec("$(xmake) -r -a -v --backtrace")
- if os.host() ~= "windows" then
- os.exec("sudo $(xmake) install --all -v --backtrace")
- os.exec("sudo $(xmake) uninstall -v --backtrace")
- end
os.exec("$(xmake) f --mode=debug --verbose --backtrace")
os.exec("$(xmake) --rebuild --all --verbose --backtrace")
- 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 --verbose --backtrace")
os.exec("$(xmake) c --verbose --backtrace")
os.exec("$(xmake) m -e buildtest")
os.exec("$(xmake) m -l")
os.exec("$(xmake) f --cc=gcc --cxx=g++")
os.exec("$(xmake) m buildtest")
+ if os.host() ~= "windows" then
+ os.exec("sudo $(xmake) install")
+ os.exec("sudo $(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
+ os.exec("sudo $(xmake) install --all -v --backtrace")
+ os.exec("sudo $(xmake) uninstall -v --backtrace")
+ end
os.exec("$(xmake) m -d buildtest")
-- test iphoneos?