From 92c6c7cb16e7ae092e43ea9197ad6f02f1b980f5 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Wed, 11 Sep 2024 14:17:50 -0400 Subject: [PATCH] wip --- Makefile | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 70195a0435df..a84fca049bba 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,32 @@ xcodebuild: fi; xcodebuild-test: - $(MAKE) xcodebuild -testPlan "$(TEST_PLAN)" + if test "$(PLATFORM)" = "iOS"; \ + then $(XCODEBUILD) \ + -testPlan "$(TEST_PLAN)" \ + -destination platform="$(PLATFORM_IOS)"; \ + elif test "$(PLATFORM)" = "macOS"; \ + then $(XCODEBUILD) \ + -testPlan "$(TEST_PLAN)" \ + -destination platform="$(PLATFORM_MACOS)"; \ + elif test "$(PLATFORM)" = "tvOS"; \ + then $(XCODEBUILD) \ + -testPlan "$(TEST_PLAN)" \ + -destination platform="$(PLATFORM_TVOS)"; \ + elif test "$(PLATFORM)" = "watchOS"; \ + then $(XCODEBUILD) \ + -testPlan "$(TEST_PLAN)" \ + -destination platform="$(PLATFORM_WATCHOS)"; \ + elif test "$(PLATFORM)" = "visionOS"; \ + then $(XCODEBUILD) \ + -testPlan "$(TEST_PLAN)" \ + -destination platform="$(PLATFORM_VISIONOS)"; \ + elif test "$(PLATFORM)" = "macCatalyst"; \ + then $(XCODEBUILD) \ + -testPlan "$(TEST_PLAN)" \ + -destination platform="$(PLATFORM_MAC_CATALYST)"; \ + else exit 1; \ + fi; build-for-library-evolution: swift build \