diff options
| author | ruki <[email protected]> | 2020-04-11 00:34:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-10 21:26:32 +0800 |
| commit | 89802c7311cd0cc699cc7d15e3f2a55150cc4f04 (patch) | |
| tree | f202924fa8b7e77a66422407ab8f03f9b14ef978 | |
| parent | c09fd5a74f8297e04bca53035b6543081a7fa905 (diff) | |
update tests
| -rw-r--r-- | tests/projects/objc/bundle/test.lua | 5 | ||||
| -rw-r--r-- | tests/projects/objc/framework/test.lua | 5 | ||||
| -rw-r--r-- | tests/test_utils/test_build.lua | 4 |
3 files changed, 4 insertions, 10 deletions
diff --git a/tests/projects/objc/bundle/test.lua b/tests/projects/objc/bundle/test.lua index 60277b691..53fecaaac 100644 --- a/tests/projects/objc/bundle/test.lua +++ b/tests/projects/objc/bundle/test.lua @@ -1,8 +1,5 @@ --- main entry function main(t) - - -- build project - if os.host() == "macosx" then + if is_host("macosx") then t:build({iphoneos = true}) else return t:skip("wrong host platform") diff --git a/tests/projects/objc/framework/test.lua b/tests/projects/objc/framework/test.lua index 60277b691..53fecaaac 100644 --- a/tests/projects/objc/framework/test.lua +++ b/tests/projects/objc/framework/test.lua @@ -1,8 +1,5 @@ --- main entry function main(t) - - -- build project - if os.host() == "macosx" then + if is_host("macosx") then t:build({iphoneos = true}) else return t:skip("wrong host platform") diff --git a/tests/test_utils/test_build.lua b/tests/test_utils/test_build.lua index 4625a5943..8bb35132c 100644 --- a/tests/test_utils/test_build.lua +++ b/tests/test_utils/test_build.lua @@ -12,7 +12,7 @@ function test_build:build(argv) os.exec("xmake f -c") os.exec("xmake") os.exec("xmake p -D") - if os.host() ~= "windows" then + if not is_host("windows") then os.exec("xmake install -o /tmp -a -D") os.exec("xmake uninstall --installdir=/tmp -D") end @@ -31,7 +31,7 @@ function test_build:build(argv) -- test iphoneos? if argv and argv.iphoneos then - if os.host() == "macosx" then + if is_host("macosx") then os.exec("xmake m package -p iphoneos") end end |
