Skip to content

Commit

Permalink
Fix more platform dependent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
keith committed Jan 7, 2019
1 parent bb70b73 commit 7a24b2d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/test/shell/bazel/apple/bazel_objc_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function test_build_app() {
setup_objc_test_support
make_lib

bazel build --verbose_failures \
bazel build --verbose_failures --apple_platform_type=ios \
--ios_sdk_version=$IOS_SDK_VERSION \
//ios:lib >$TEST_log 2>&1 || fail "should pass"
ls bazel-out/apl-ios_x86_64-fastbuild/bin/ios/liblib.a \
Expand All @@ -60,7 +60,8 @@ function test_invalid_ios_sdk_version() {
setup_objc_test_support
make_lib

! bazel build --verbose_failures --ios_sdk_version=2.34 \
! bazel build --verbose_failures --apple_platform_type=ios \
--ios_sdk_version=2.34 \
//ios:lib >$TEST_log 2>&1 || fail "should fail"
expect_log "SDK \"iphonesimulator2.34\" cannot be located."
}
Expand Down Expand Up @@ -102,7 +103,7 @@ int aFunction() {
}
EOF

bazel build --verbose_failures \
bazel build --verbose_failures --apple_platform_type=ios \
--ios_sdk_version=$IOS_SDK_VERSION //objclib:objclib >"$TEST_log" 2>&1 \
|| fail "Should build objc_library"

Expand Down Expand Up @@ -147,6 +148,7 @@ objc_library(name = 'main',
EOF

bazel build --verbose_failures \
--apple_platform_type=ios \
--ios_sdk_version=$IOS_SDK_VERSION \
--objc_enable_binary_stripping=true \
--compilation_mode=opt \
Expand Down

0 comments on commit 7a24b2d

Please sign in to comment.