diff options
| author | ruki <[email protected]> | 2017-05-25 10:59:58 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-05-25 10:59:58 +0800 |
| commit | 3768a8200a7699e1531c07ee5ab490e7d4f27b11 (patch) | |
| tree | ed14596a77c553597a47e4cddfbb61d57e5cc0ac /tests/build.lua | |
| parent | de4ea98d03332261d385a9096ebd9c4f6a3c50d1 (diff) | |
improve build test
Diffstat (limited to 'tests/build.lua')
| -rw-r--r-- | tests/build.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/build.lua b/tests/build.lua index 864ad79ec..3a9e5a385 100644 --- a/tests/build.lua +++ b/tests/build.lua @@ -23,13 +23,13 @@ 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 + if sudo.has() 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 + if sudo.has() then -- sudo.exec("xmake install --all -v --backtrace") -- sudo.exec("xmake uninstall -v --backtrace") end |
