summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Smiley <keithbsmiley@gmail.com>2023-08-21 15:24:21 -0700
committerGitHub <noreply@github.com>2023-08-21 17:24:21 -0500
commitfa9fad0de413a9c5d757e833b1e54ed196aa18b7 (patch)
tree005d59ba54f8700e912776a5e9bcbd090b248baf
parentc9f40aa2f9458503fea382d56d67ae55dee9921d (diff)
downloadbazelbuild-apple_support-fa9fad0de413a9c5d757e833b1e54ed196aa18b7.tar.gz
Remove test_additive_cpus_flag (#249)
This is really a bazel thing not an apple_support thing
-rwxr-xr-xtest/shell/apple_test.sh47
1 files changed, 0 insertions, 47 deletions
diff --git a/test/shell/apple_test.sh b/test/shell/apple_test.sh
index b42ae3e..9c2db27 100755
--- a/test/shell/apple_test.sh
+++ b/test/shell/apple_test.sh
@@ -175,53 +175,6 @@ EOF
|| fail "should build starlark_apple_binary with dSYMs"
}
-function test_additive_cpus_flag() {
- rm -rf package
- mkdir -p package
-
- cat > package/BUILD <<EOF
-load("@build_bazel_apple_support//test:starlark_apple_binary.bzl", "starlark_apple_binary")
-objc_library(
- name = "lib_a",
- srcs = ["a.m"],
-)
-objc_library(
- name = "lib_b",
- srcs = ["b.m"],
-)
-starlark_apple_binary(
- name = "main_binary",
- deps = [":lib_a", ":lib_b"],
- platform_type = "ios",
- minimum_os_version = "10.0",
-)
-genrule(
- name = "lipo_run",
- srcs = [":main_binary"],
- outs = ["lipo_out"],
- cmd =
- "set -e && " +
- "lipo -info \$(location :main_binary) > \$(@)",
- tags = ["requires-darwin"],
-)
-EOF
- touch package/a.m
- cat > package/b.m <<EOF
-int main() {
- return 0;
-}
-EOF
-
- bazel build --verbose_failures \
- //package:lipo_out \
- --noincompatible_enable_cc_toolchain_resolution \
- --ios_multi_cpus=sim_arm64 --ios_multi_cpus=x86_64 \
- || fail "should build starlark_apple_binary and obtain info via lipo"
-
- grep "x86_64 arm64" bazel-bin/package/lipo_out \
- || fail "expected output binary to contain 2 architectures"
-}
-
function test_apple_binary_spaces() {
rm -rf package
mkdir -p package