@@ -176,16 +176,15 @@ fileprivate struct HostBuildToolBuildOperationTests: CoreBasedTests {
176
176
" GENERATE_INFOPLIST_FILE " : " YES " ,
177
177
" PRODUCT_NAME " : " $(TARGET_NAME) " ,
178
178
" CODE_SIGNING_ALLOWED " : " NO " ,
179
+ " SDKROOT " : " auto " ,
180
+ " SUPPORTED_PLATFORMS " : " $(AVAILABLE_PLATFORMS) " ,
179
181
] ) ,
180
182
] ,
181
183
targets: [
182
184
TestStandardTarget ( " TransitivePackageDep " , type: . objectFile, buildConfigurations: [
183
185
TestBuildConfiguration (
184
186
" Debug " ,
185
- buildSettings: [
186
- " SDKROOT " : " auto " ,
187
- " SUPPORTED_PLATFORMS " : " macosx iphoneos iphonesimulator " ,
188
- ] ,
187
+ buildSettings: [ : ] ,
189
188
impartedBuildProperties:
190
189
TestImpartedBuildProperties (
191
190
buildSettings: [
@@ -195,14 +194,7 @@ fileprivate struct HostBuildToolBuildOperationTests: CoreBasedTests {
195
194
] , buildPhases: [
196
195
TestSourcesBuildPhase ( [ " transitivedep.swift " ] )
197
196
] ) ,
198
- TestStandardTarget ( " PackageDep " , type: . staticLibrary, buildConfigurations: [
199
- TestBuildConfiguration (
200
- " Debug " ,
201
- buildSettings: [
202
- " SDKROOT " : " auto " ,
203
- " SUPPORTED_PLATFORMS " : " macosx iphoneos iphonesimulator " ,
204
- ] ) ,
205
- ] , buildPhases: [
197
+ TestStandardTarget ( " PackageDep " , type: . staticLibrary, buildPhases: [
206
198
TestSourcesBuildPhase ( [ " dep.swift " ] ) ,
207
199
TestFrameworksBuildPhase ( [
208
200
TestBuildFile ( . target( " TransitivePackageDep " ) )
@@ -214,14 +206,7 @@ fileprivate struct HostBuildToolBuildOperationTests: CoreBasedTests {
214
206
TestFrameworksBuildPhase ( [
215
207
TestBuildFile ( . target( " PackageDep " ) ) ,
216
208
]
217
- ) , buildConfigurations: [
218
- TestBuildConfiguration (
219
- " Debug " ,
220
- buildSettings: [
221
- " SDKROOT " : " auto " ,
222
- " SUPPORTED_PLATFORMS " : " macosx iphoneos iphonesimulator " ,
223
- ] ) ,
224
- ] , dependencies: [
209
+ ) , dependencies: [
225
210
" PackageDep "
226
211
] ) ,
227
212
] )
@@ -240,43 +225,25 @@ fileprivate struct HostBuildToolBuildOperationTests: CoreBasedTests {
240
225
" GENERATE_INFOPLIST_FILE " : " YES " ,
241
226
" PRODUCT_NAME " : " $(TARGET_NAME) " ,
242
227
" CODE_SIGNING_ALLOWED " : " NO " ,
228
+ " SDKROOT " : " auto " ,
229
+ " SUPPORTED_PLATFORMS " : " $(AVAILABLE_PLATFORMS) " ,
243
230
] ) ,
244
231
] ,
245
232
targets: [
246
- TestStandardTarget ( " HostTool " , type: . hostBuildTool, buildConfigurations: [
247
- TestBuildConfiguration (
248
- " Debug " ,
249
- buildSettings: [
250
- " SDKROOT " : " auto " ,
251
- ] )
252
- ] , buildPhases: [
233
+ TestStandardTarget ( " HostTool " , type: . hostBuildTool, buildPhases: [
253
234
TestSourcesBuildPhase ( [ " tool.swift " ] ) ,
254
235
TestFrameworksBuildPhase ( [ TestBuildFile ( . target( " PackageDepProduct " ) ) ] )
255
236
] , dependencies: [
256
237
" PackageDepProduct "
257
238
] ) ,
258
- TestStandardTarget ( " HostToolClientLib " , type: . objectFile, buildConfigurations: [
259
- TestBuildConfiguration (
260
- " Debug " ,
261
- buildSettings: [
262
- " SDKROOT " : " auto " ,
263
- " SUPPORTED_PLATFORMS " : " macosx iphoneos iphonesimulator " ,
264
- ] ) ,
265
- ] , buildPhases: [
239
+ TestStandardTarget ( " HostToolClientLib " , type: . objectFile, buildPhases: [
266
240
TestSourcesBuildPhase ( [ " lib.swift " ] ) ,
267
241
] , dependencies: [
268
242
" HostTool "
269
243
] ) ,
270
244
TestPackageProductTarget ( " HostToolClientLibProduct " , frameworksBuildPhase:
271
245
TestFrameworksBuildPhase ( [ TestBuildFile ( . target( " HostToolClientLib " ) ) ]
272
- ) , buildConfigurations: [
273
- TestBuildConfiguration (
274
- " Debug " ,
275
- buildSettings: [
276
- " SDKROOT " : " auto " ,
277
- " SUPPORTED_PLATFORMS " : " macosx iphoneos iphonesimulator " ,
278
- ] ) ,
279
- ] , dependencies: [
246
+ ) , dependencies: [
280
247
" HostToolClientLib "
281
248
] ) ,
282
249
] )
0 commit comments