| 1 |
# Copyright 2021 gRPC authors. |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
# |
| 16 |
# This is for the gRPC build system. This isn't intended to be used outsite of |
| 17 |
# the BUILD file for gRPC. It contains the mapping for the template system we |
| 18 |
# use to generate other platform's build system files. |
| 19 |
# |
| 20 |
# Please consider that there should be a high bar for additions and changes to |
| 21 |
# this file. |
| 22 |
# Each rule listed must be re-written for Google's internal build system, and |
| 23 |
# each change must be ported from one to the other. |
| 24 |
# |
| 25 |
|
| 26 |
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_unit_test") |
| 27 |
load("@build_bazel_rules_apple//apple/testing/default_runner:ios_test_runner.bzl", "ios_test_runner") |
| 28 |
|
| 29 |
ios_test_runner( |
| 30 |
name = "ios_x86_64_sim_runner", |
| 31 |
device_type = "iPhone 8", |
| 32 |
) |
| 33 |
|
| 34 |
objc_library( |
| 35 |
name = "LibuvTestsLib", |
| 36 |
testonly = True, |
| 37 |
srcs = glob(["*.m"]), |
| 38 |
deps = [ |
| 39 |
"//external:libuv", |
| 40 |
"//external:libuv_test", |
| 41 |
], |
| 42 |
) |
| 43 |
|
| 44 |
ios_unit_test( |
| 45 |
name = "LibuvTest", |
| 46 |
minimum_os_version = "9.0", |
| 47 |
runner = ":ios_x86_64_sim_runner", |
| 48 |
deps = [":LibuvTestsLib"], |
| 49 |
) |