Skip to content

Commit

Permalink
use $(xmake) instead of xmake to fix cnf
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihe774 committed May 23, 2017
1 parent 9e014f7 commit f2e0d82
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions tests/build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,41 @@
function main(argv)

-- generic?
os.exec("xmake m -b")
os.exec("xmake f -c")
os.exec("xmake")
os.exec("$(xmake) m -b")
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("sudo $(xmake) install")
os.exec("sudo $(xmake) uninstall")
end
os.exec("xmake p")
os.exec("xmake c")
os.exec("xmake f -m release")
os.exec("xmake -r -a -v --backtrace")
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")
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")
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")
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")
os.exec("xmake f --cc=clang --cxx=clang++ --ld=clang++ --verbose --backtrace")
os.exec("xmake m buildtest")
os.exec("xmake m -d buildtest")
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")
os.exec("$(xmake) f --cc=clang --cxx=clang++ --ld=clang++ --verbose --backtrace")
os.exec("$(xmake) m buildtest")
os.exec("$(xmake) m -d buildtest")

-- test iphoneos?
if argv and argv.iphoneos then
if os.host() == "macosx" then
os.exec("xmake m package -p iphoneos")
os.exec("$(xmake) m package -p iphoneos")
end
end
end

0 comments on commit f2e0d82

Please sign in to comment.