Skip to content

Commit 92c6c7c

Browse files
committed
wip
1 parent 65a3b9e commit 92c6c7c

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

Makefile

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,32 @@ xcodebuild:
4848
fi;
4949

5050
xcodebuild-test:
51-
$(MAKE) xcodebuild -testPlan "$(TEST_PLAN)"
51+
if test "$(PLATFORM)" = "iOS"; \
52+
then $(XCODEBUILD) \
53+
-testPlan "$(TEST_PLAN)" \
54+
-destination platform="$(PLATFORM_IOS)"; \
55+
elif test "$(PLATFORM)" = "macOS"; \
56+
then $(XCODEBUILD) \
57+
-testPlan "$(TEST_PLAN)" \
58+
-destination platform="$(PLATFORM_MACOS)"; \
59+
elif test "$(PLATFORM)" = "tvOS"; \
60+
then $(XCODEBUILD) \
61+
-testPlan "$(TEST_PLAN)" \
62+
-destination platform="$(PLATFORM_TVOS)"; \
63+
elif test "$(PLATFORM)" = "watchOS"; \
64+
then $(XCODEBUILD) \
65+
-testPlan "$(TEST_PLAN)" \
66+
-destination platform="$(PLATFORM_WATCHOS)"; \
67+
elif test "$(PLATFORM)" = "visionOS"; \
68+
then $(XCODEBUILD) \
69+
-testPlan "$(TEST_PLAN)" \
70+
-destination platform="$(PLATFORM_VISIONOS)"; \
71+
elif test "$(PLATFORM)" = "macCatalyst"; \
72+
then $(XCODEBUILD) \
73+
-testPlan "$(TEST_PLAN)" \
74+
-destination platform="$(PLATFORM_MAC_CATALYST)"; \
75+
else exit 1; \
76+
fi;
5277

5378
build-for-library-evolution:
5479
swift build \

0 commit comments

Comments
 (0)