diff options
| author | TitanSnow <[email protected]> | 2017-05-25 11:17:46 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-05-25 11:17:46 +0800 |
| commit | abb1d5705ecd01d906f63c7d838b73b7c2d1ede6 (patch) | |
| tree | 6873180d5756c809117dc5c9f8f594aba56af435 /tests | |
| parent | bbed6a5a8a80437afbb57540d77418084aabd950 (diff) | |
| parent | 3768a8200a7699e1531c07ee5ab490e7d4f27b11 (diff) | |
Merge branch 'dev' into installtest
Diffstat (limited to 'tests')
| -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 667b29e99..763ebc3a9 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 |
