From 89802c7311cd0cc699cc7d15e3f2a55150cc4f04 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 11 Apr 2020 00:34:25 +0800 Subject: update tests --- tests/projects/objc/bundle/test.lua | 5 +---- tests/projects/objc/framework/test.lua | 5 +---- 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 -- cgit v1.3.1