diff options
| author | TitanSnow <[email protected]> | 2017-05-23 18:27:49 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-05-23 18:49:14 +0800 |
| commit | 9e014f7b045966f612cdbbde7096ab889d01a0cc (patch) | |
| tree | 883ea2e673f1837a375ddee0dce5ece78e89a7a8 /tests/build.lua | |
| parent | c5366073e5275dcb8b991d648e21bdf30f955da2 (diff) | |
do not test install on windows
Diffstat (limited to 'tests/build.lua')
| -rw-r--r-- | tests/build.lua | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/build.lua b/tests/build.lua index b02062ed4..b607414c0 100644 --- a/tests/build.lua +++ b/tests/build.lua @@ -5,18 +5,24 @@ function main(argv) os.exec("xmake m -b") os.exec("xmake f -c") os.exec("xmake") - os.exec("sudo xmake install") - os.exec("sudo xmake uninstall") + if os.host() ~= "windows" then + 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("sudo xmake install --all -v --backtrace") - os.exec("sudo xmake uninstall -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") - os.exec("xmake install -o /tmp -a --verbose --backtrace") - os.exec("xmake uninstall --installdir=/tmp --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") |
