forked from swiftlang/swift-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildCommandTests.swift
More file actions
380 lines (344 loc) · 25.5 KB
/
Copy pathBuildCommandTests.swift
File metadata and controls
380 lines (344 loc) · 25.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// Copyright (c) 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
import SWBCore
import SWBProtocol
import SWBTestSupport
import SwiftBuildTestSupport
import SWBUtil
import Testing
import Foundation
/// Tests the behavior of various alternative build commands of a build request, including single-file compiles.
@Suite
fileprivate struct BuildCommandTests: CoreBasedTests {
/// Check compilation of a single file in C, ObjC and Swift, including the `uniquingSuffix` behavior.
@Test(.requireSDKs(.host))
func singleFileCompile() async throws {
try await withTemporaryDirectory { tmpDirPath async throws -> Void in
let testWorkspace = try await TestWorkspace(
"Test",
sourceRoot: tmpDirPath.join("Test"),
projects: [
TestProject(
"aProject",
groupTree: TestGroup("Sources", children: [TestFile("CFile.c"), TestFile("SwiftFile.swift"), TestFile("ObjCFile.m")]),
buildConfigurations: [TestBuildConfiguration(
"Debug",
buildSettings: ["PRODUCT_NAME": "$(TARGET_NAME)",
"SWIFT_ENABLE_EXPLICIT_MODULES": "NO",
"SWIFT_VERSION": swiftVersion])],
targets: [
TestStandardTarget(
"aLibrary", type: .staticLibrary,
buildConfigurations: [TestBuildConfiguration("Debug")],
buildPhases: [TestSourcesBuildPhase(["CFile.c", "SwiftFile.swift", "ObjCFile.m"])]
)
]
)
]
)
let tester = try await BuildOperationTester(getCore(), testWorkspace, simulated: false)
// Create the input files.
let cFile = testWorkspace.sourceRoot.join("aProject/CFile.c")
try await tester.fs.writeFileContents(cFile) { stream in }
let swiftFile = testWorkspace.sourceRoot.join("aProject/SwiftFile.swift")
try await tester.fs.writeFileContents(swiftFile) { stream in }
let objcFile = testWorkspace.sourceRoot.join("aProject/ObjCFile.m")
try await tester.fs.writeFileContents(objcFile) { stream in }
// Create a build request context to compute the output paths - can't use one from the tester because it's an _output_ of checkBuild.
let buildRequestContext = BuildRequestContext(workspaceContext: tester.workspaceContext)
// Construct the output paths.
let excludedTypes: Set<String> = ["Copy", "Gate", "MkDir", "SymLink", "WriteAuxiliaryFile", "CreateBuildDirectory", "SwiftDriver", "SwiftDriver Compilation Requirements", "SwiftDriver Compilation", "SwiftMergeGeneratedHeaders", "ClangStatCache", "SwiftExplicitDependencyCompileModuleFromInterface", "SwiftExplicitDependencyGeneratePcm", "ProcessSDKImports"]
let runDestination = RunDestinationInfo.host
let parameters = BuildParameters(configuration: "Debug", activeRunDestination: runDestination)
let target = tester.workspace.allTargets.first(where: { _ in true })!
let cOutputPath = try #require(buildRequestContext.computeOutputPaths(for: cFile, workspace: tester.workspace, target: BuildRequest.BuildTargetInfo(parameters: parameters, target: target), command: .singleFileBuild(buildOnlyTheseFiles: [Path("")]), parameters: parameters).only)
let objcOutputPath = try #require(buildRequestContext.computeOutputPaths(for: objcFile, workspace: tester.workspace, target: BuildRequest.BuildTargetInfo(parameters: parameters, target: target), command: .singleFileBuild(buildOnlyTheseFiles: [Path("")]), parameters: parameters).only)
let swiftOutputPath = try #require(buildRequestContext.computeOutputPaths(for: swiftFile, workspace: tester.workspace, target: BuildRequest.BuildTargetInfo(parameters: parameters, target: target), command: .singleFileBuild(buildOnlyTheseFiles: [Path("")]), parameters: parameters).only)
// Check building just the Swift file.
try await tester.checkBuild(parameters: parameters, runDestination: runDestination, persistent: true, buildOutputMap: [swiftOutputPath: swiftFile.str]) { results in
results.consumeTasksMatchingRuleTypes(excludedTypes)
results.checkTaskExists(.matchRule(["SwiftCompile", "normal", results.runDestinationTargetArchitecture, "Compiling \(swiftFile.basename)", swiftFile.str]))
results.checkTaskExists(.matchRule(["SwiftEmitModule", "normal", results.runDestinationTargetArchitecture, "Emitting module for aLibrary"]))
if runDestination == .linux { // FIXME: This needs to be investigated... We should be able to use core.hostOperatingSystem.imageFormat.requiresSwiftModulewrap to test for this, but on Windows using this causes the test to fail as the SwiftModuleWrap does not seem to be added.
results.checkTaskExists(.matchRule(["SwiftModuleWrap", "normal", results.runDestinationTargetArchitecture, "Wrapping Swift module aLibrary"]))
}
results.checkNoTask()
}
// Check building just the C file.
try await tester.checkBuild(parameters: parameters, runDestination: runDestination, persistent: true, buildOutputMap: [cOutputPath: cFile.str]) { results in
results.consumeTasksMatchingRuleTypes(excludedTypes)
results.checkTaskExists(.matchRule(["CompileC", tmpDirPath.join("Test/aProject/build/aProject.build/Debug\(runDestination.builtProductsDirSuffix)/aLibrary.build/Objects-normal/\(results.runDestinationTargetArchitecture)/CFile.o").str, cFile.str, "normal", results.runDestinationTargetArchitecture, "c", "com.apple.compilers.llvm.clang.1_0.compiler"]))
if runDestination == .linux {
// FIXME: This needs to be investigated... iIs not clear why this task is added when building a C file, and only on Linux. It's also nondeterministic.
let tasks = results.findMatchingTasks([.matchRule(["SwiftEmitModule", "normal", results.runDestinationTargetArchitecture, "Emitting module for aLibrary"])])
for task in tasks {
results.removeMatchedTask(task)
}
#expect(tasks.count == 0 || tasks.count == 1)
}
results.checkNoTask()
}
// Check building just the ObjC file.
try await tester.checkBuild(parameters: parameters, runDestination: runDestination, persistent: true, buildOutputMap: [objcOutputPath: objcFile.str]) { results in
results.consumeTasksMatchingRuleTypes(excludedTypes)
results.checkTaskExists(.matchRule(["CompileC", tmpDirPath.join("Test/aProject/build/aProject.build/Debug\(runDestination.builtProductsDirSuffix)/aLibrary.build/Objects-normal/\(results.runDestinationTargetArchitecture)/ObjCFile.o").str, objcFile.str, "normal", results.runDestinationTargetArchitecture, "objective-c", "com.apple.compilers.llvm.clang.1_0.compiler"]))
results.checkNoTask()
}
try await tester.checkBuild(runDestination: runDestination, persistent: true) { results in
results.checkNoDiagnostics()
}
}
}
// Helper method with sets up a single file build with a single ObjC file.
func runSingleFileTask(_ parameters: BuildParameters, buildCommand: BuildCommand, fileName: String, fileType: String? = nil, multipleTargets: Bool = false, body: @escaping (_ results: BuildOperationTester.BuildResults, _ excludedTypes: Set<String>, _ inputs: [Path], _ outputs: [String]) throws -> Void) async throws {
try await withTemporaryDirectory { tmpDirPath async throws -> Void in
var targets: [any TestTarget] = [
TestAggregateTarget("All", dependencies: ["aFramework"] + (multipleTargets ? ["bFramework"] : [])),
TestStandardTarget(
"aFramework", type: .framework,
buildConfigurations: [TestBuildConfiguration("Debug")],
buildPhases: [
TestSourcesBuildPhase([
TestBuildFile(fileName)
]),
])
]
if multipleTargets {
targets.append(TestStandardTarget(
"bFramework", type: .framework,
buildConfigurations: [TestBuildConfiguration("Debug")],
buildPhases: [
TestSourcesBuildPhase([
TestBuildFile(fileName)
]),
]))
}
let testWorkspace = TestWorkspace(
"Test",
sourceRoot: tmpDirPath.join("Test"),
projects: [
TestProject(
"aProject",
groupTree: TestGroup("Sources", children: [
TestFile(fileName, fileType: fileType),
]),
buildConfigurations: [TestBuildConfiguration(
"Debug",
buildSettings: ["PRODUCT_NAME": "$(TARGET_NAME)"])],
targets: targets)
])
let tester = try await BuildOperationTester(getCore(), testWorkspace, simulated: false)
// Create the input file.
let input = testWorkspace.sourceRoot.join("aProject/\(fileName)")
try await tester.fs.writeFileContents(input) { stream in }
// Create a build request context to compute the output paths - can't use one from the tester because it's an _output_ of checkBuild.
let buildRequestContext = BuildRequestContext(workspaceContext: tester.workspaceContext)
// Construct the output paths.
let excludedTypes: Set<String> = ["Copy", "Gate", "MkDir", "SymLink", "WriteAuxiliaryFile", "CreateBuildDirectory", "ClangStatCache"]
let outputs = try tester.workspace.allTargets.dropFirst().map { target in
try #require(buildRequestContext.computeOutputPaths(for: input, workspace: tester.workspace, target: BuildRequest.BuildTargetInfo(parameters: parameters, target: target), command: buildCommand).only)
}
// Check analyzing the file.
try await tester.checkBuild(parameters: parameters, runDestination: nil, buildRequest: BuildRequest(parameters: parameters, buildTargets: tester.workspace.allTargets.dropFirst().map { .init(parameters: parameters, target: $0) }, continueBuildingAfterErrors: true, useParallelTargets: true, useImplicitDependencies: true, useDryRun: false, buildCommand: buildCommand), persistent: true, buildOutputMap: Dictionary(uniqueKeysWithValues: outputs.map { ($0, input.str) })) { results in
try body(results, excludedTypes, [input], outputs)
}
}
}
/// Check analyze of a single file.
@Test(.requireSDKs(.host))
func singleFileAnalyze() async throws {
try await runSingleFileTask(BuildParameters(configuration: "Debug", activeRunDestination: .host, overrides: ["RUN_CLANG_STATIC_ANALYZER": "YES"]), buildCommand: .singleFileBuild(buildOnlyTheseFiles: [Path("")]), fileName: "File.m") { results, excludedTypes, _, _ in
results.consumeTasksMatchingRuleTypes(excludedTypes)
results.checkTask(.matchRuleType("AnalyzeShallow"), .matchRuleItemBasename("File.m"), .matchRuleItem("normal"), .matchRuleItem(results.runDestinationTargetArchitecture)) { _ in }
results.checkNoTask()
}
}
/// Check preprocessing of a single file.
@Test(.requireSDKs(.host))
func preprocessSingleFile() async throws {
try await runSingleFileTask(BuildParameters(configuration: "Debug", activeRunDestination: .host), buildCommand: .generatePreprocessedFile(buildOnlyTheseFiles: [Path("")]), fileName: "File.m") { results, excludedTypes, inputs, outputs in
results.consumeTasksMatchingRuleTypes(excludedTypes)
try results.checkTask(.matchRuleType("Preprocess"), .matchRuleItemBasename("File.m"), .matchRuleItem("normal"), .matchRuleItem(results.runDestinationTargetArchitecture)) { task in
task.checkCommandLineContainsUninterrupted(["-x", "objective-c"])
try task.checkCommandLineContainsUninterrupted(["-E", #require(inputs.first).str, "-o", #require(outputs.first)])
}
results.checkNoTask()
}
// Ensure that files with a non-default type work too
try await runSingleFileTask(BuildParameters(configuration: "Debug", activeRunDestination: .host), buildCommand: .generatePreprocessedFile(buildOnlyTheseFiles: [Path("")]), fileName: "File.cpp", fileType: "sourcecode.cpp.objcpp") { results, excludedTypes, inputs, outputs in
results.consumeTasksMatchingRuleTypes(excludedTypes)
try results.checkTask(.matchRuleType("Preprocess"), .matchRuleItemBasename("File.cpp"), .matchRuleItem("normal"), .matchRuleItem(results.runDestinationTargetArchitecture)) { task in
task.checkCommandLineContainsUninterrupted(["-x", "objective-c++"])
try task.checkCommandLineContainsUninterrupted(["-E", #require(inputs.first).str, "-o", #require(outputs.first)])
}
results.checkNoTask()
}
// Ensure that RUN_CLANG_STATIC_ANALYZER=YES doesn't interfere with the preprocess build command
try await runSingleFileTask(BuildParameters(configuration: "Debug", activeRunDestination: .host, overrides: ["RUN_CLANG_STATIC_ANALYZER": "YES"]), buildCommand: .generatePreprocessedFile(buildOnlyTheseFiles: [Path("")]), fileName: "File.m") { results, excludedTypes, inputs, outputs in
results.consumeTasksMatchingRuleTypes(excludedTypes)
try results.checkTask(.matchRuleType("Preprocess"), .matchRuleItemBasename("File.m"), .matchRuleItem("normal"), .matchRuleItem(results.runDestinationTargetArchitecture)) { task in
task.checkCommandLineContainsUninterrupted(["-x", "objective-c"])
try task.checkCommandLineContainsUninterrupted(["-E", #require(inputs.first).str, "-o", #require(outputs.first)])
}
results.checkNoTask()
}
}
/// Check assembling of a single file.
@Test(.requireSDKs(.macOS))
func assembleSingleFile() async throws {
try await runSingleFileTask(BuildParameters(configuration: "Debug", activeRunDestination: .host), buildCommand: .generateAssemblyCode(buildOnlyTheseFiles: [Path("")]), fileName: "File.m") { results, excludedTypes, inputs, outputs in
results.consumeTasksMatchingRuleTypes(excludedTypes)
try results.checkTask(.matchRuleType("Assemble"), .matchRuleItemBasename("File.m"), .matchRuleItem("normal"), .matchRuleItem(results.runDestinationTargetArchitecture)) { task in
task.checkCommandLineContainsUninterrupted(["-x", "objective-c"])
try task.checkCommandLineContainsUninterrupted(["-S", #require(inputs.first).str, "-o", #require(outputs.first)])
let assembly = try String(contentsOfFile: #require(outputs.first), encoding: .utf8)
#expect(assembly.hasPrefix("\t.section\t__TEXT,__text,regular,pure_instructions"))
}
results.checkNoTask()
}
// Ensure that RUN_CLANG_STATIC_ANALYZER=YES doesn't interfere with the assemble build command
try await runSingleFileTask(BuildParameters(configuration: "Debug", activeRunDestination: .host, overrides: ["RUN_CLANG_STATIC_ANALYZER": "YES"]), buildCommand: .generateAssemblyCode(buildOnlyTheseFiles: [Path("")]), fileName: "File.m") { results, excludedTypes, inputs, outputs in
results.consumeTasksMatchingRuleTypes(excludedTypes)
try results.checkTask(.matchRuleType("Assemble"), .matchRuleItemBasename("File.m"), .matchRuleItem("normal"), .matchRuleItem(results.runDestinationTargetArchitecture)) { task in
task.checkCommandLineContainsUninterrupted(["-x", "objective-c"])
try task.checkCommandLineContainsUninterrupted(["-S", #require(inputs.first).str, "-o", #require(outputs.first)])
let assembly = try String(contentsOfFile: #require(outputs.first), encoding: .utf8)
#expect(assembly.hasPrefix("\t.section\t__TEXT,__text,regular,pure_instructions"))
}
results.checkNoTask()
}
// Include the single file to assemble in multiple targets
try await runSingleFileTask(BuildParameters(configuration: "Debug", activeRunDestination: .host), buildCommand: .generateAssemblyCode(buildOnlyTheseFiles: [Path("")]), fileName: "File.m", multipleTargets: true) { results, excludedTypes, inputs, outputs in
let firstOutput = try #require(outputs.sorted()[safe: 0])
let secondOutput = try #require(outputs.sorted()[safe: 1])
results.consumeTasksMatchingRuleTypes(excludedTypes)
try results.checkTask(.matchRuleType("Assemble"), .matchRuleItemBasename("File.m"), .matchRuleItem("normal"), .matchRuleItem(results.runDestinationTargetArchitecture), .matchTargetName("aFramework")) { task in
task.checkCommandLineContainsUninterrupted(["-x", "objective-c"])
try task.checkCommandLineContainsUninterrupted(["-S", #require(inputs.first).str, "-o", firstOutput])
let assembly = try String(contentsOfFile: firstOutput, encoding: .utf8)
#expect(assembly.hasPrefix("\t.section\t__TEXT,__text,regular,pure_instructions"))
}
try results.checkTask(.matchRuleType("Assemble"), .matchRuleItemBasename("File.m"), .matchRuleItem("normal"), .matchRuleItem(results.runDestinationTargetArchitecture), .matchTargetName("bFramework")) { task in
task.checkCommandLineContainsUninterrupted(["-x", "objective-c"])
try task.checkCommandLineContainsUninterrupted(["-S", #require(inputs.first).str, "-o", secondOutput])
let assembly = try String(contentsOfFile: secondOutput, encoding: .utf8)
#expect(assembly.hasPrefix("\t.section\t__TEXT,__text,regular,pure_instructions"))
}
results.checkNoTask()
results.checkNoErrors()
}
}
/// Check behavior of the skip dependencies flag.
@Test(.requireSDKs(.host))
func skipDependenciesFlag() async throws {
func runTest(skipDependencies: Bool, checkAuxiliaryTarget: (_ results: BuildOperationTester.BuildResults) throws -> Void) async throws {
try await withTemporaryDirectory { tmpDirPath async throws -> Void in
let testWorkspace = TestWorkspace(
"Test",
sourceRoot: tmpDirPath.join("Test"),
projects: [
TestProject(
"aProject",
groupTree: TestGroup("Sources", children: [
TestFile("CFile.c"),
]),
buildConfigurations: [TestBuildConfiguration(
"Debug",
buildSettings: ["PRODUCT_NAME": "$(TARGET_NAME)"])],
targets: [
TestStandardTarget(
"aLibrary", type: .staticLibrary,
buildConfigurations: [TestBuildConfiguration("Debug")],
buildPhases: [
TestSourcesBuildPhase(["CFile.c"]),
],
dependencies: ["aLibraryDep"]),
TestStandardTarget(
"aLibraryDep", type: .staticLibrary,
buildConfigurations: [TestBuildConfiguration("Debug")],
buildPhases: [
TestSourcesBuildPhase(["CFile.c"]),
])
])
])
let tester = try await BuildOperationTester(getCore(), testWorkspace, simulated: false)
// Create the input files.
let cFile = testWorkspace.sourceRoot.join("aProject/CFile.c")
try await tester.fs.writeFileContents(cFile) { stream in }
let runDestination = RunDestinationInfo.host
let parameters = BuildParameters(configuration: "Debug", activeRunDestination: runDestination)
try await tester.checkBuild(parameters: parameters, runDestination: runDestination, buildCommand: .build(style: .buildOnly, skipDependencies: skipDependencies), persistent: true) { results in
results.consumeTasksMatchingRuleTypes(["Gate", "MkDir", "CreateBuildDirectory", "RegisterExecutionPolicyException", "SymLink", "Touch", "WriteAuxiliaryFile", "GenerateTAPI", "ClangStatCache", "ProcessSDKImports", "Libtool"])
results.consumeTasksMatchingRuleTypes(["CompileC", "Ld"], targetName: "aLibrary")
try checkAuxiliaryTarget(results)
results.checkNoTask()
results.checkNoDiagnostics()
}
}
}
try await runTest(skipDependencies: true) { results in
results.checkNoTask(.matchTargetName("aLibraryDep"))
}
try await runTest(skipDependencies: false) { results in
results.consumeTasksMatchingRuleTypes(["CompileC", "Ld"], targetName: "aLibraryDep")
}
}
@Test(.requireSDKs(.macOS), .requireXcode16())
func singleFileCompileMetal() async throws {
let core = try await getCore()
try await withTemporaryDirectory { tmpDirPath async throws -> Void in
let testWorkspace = try await TestWorkspace(
"Test",
sourceRoot: tmpDirPath.join("Test"),
projects: [
TestProject(
"aProject",
groupTree: TestGroup("Sources", children: [TestFile("Metal.metal")]),
buildConfigurations: [TestBuildConfiguration(
"Debug",
buildSettings: ["PRODUCT_NAME": "$(TARGET_NAME)",
"SWIFT_ENABLE_EXPLICIT_MODULES": "NO",
"TOOLCHAINS": core.environment["TOOLCHAINS"] ?? "$(inherited)",
"SWIFT_VERSION": swiftVersion])],
targets: [
TestStandardTarget(
"aLibrary", type: .staticLibrary,
buildConfigurations: [TestBuildConfiguration("Debug")],
buildPhases: [TestSourcesBuildPhase(["Metal.metal"])]
)
]
)
]
)
let tester = try await BuildOperationTester(core, testWorkspace, simulated: false)
let metalFile = testWorkspace.sourceRoot.join("aProject/Metal.metal")
try await tester.fs.writeFileContents(metalFile) { stream in }
// Create a build request context to compute the output paths - can't use one from the tester because it's an _output_ of checkBuild.
let buildRequestContext = BuildRequestContext(workspaceContext: tester.workspaceContext)
// Construct the output paths.
let excludedTypes: Set<String> = ["Copy", "Gate", "MkDir", "SymLink", "WriteAuxiliaryFile", "CreateBuildDirectory", "SwiftDriver", "SwiftDriver Compilation Requirements", "SwiftDriver Compilation", "SwiftMergeGeneratedHeaders", "ClangStatCache", "SwiftExplicitDependencyCompileModuleFromInterface", "SwiftExplicitDependencyGeneratePcm", "ProcessSDKImports"]
let runDestination = RunDestinationInfo.host
let parameters = BuildParameters(configuration: "Debug", activeRunDestination: runDestination)
let target = tester.workspace.allTargets.first(where: { _ in true })!
let metalOutputPath = try #require(buildRequestContext.computeOutputPaths(for: metalFile, workspace: tester.workspace, target: BuildRequest.BuildTargetInfo(parameters: parameters, target: target), command: .singleFileBuild(buildOnlyTheseFiles: [Path("")]), parameters: parameters).only)
// Check building just the Metal file.
try await tester.checkBuild(parameters: parameters, runDestination: runDestination, persistent: true, buildOutputMap: [metalOutputPath: metalFile.str]) { results in
results.consumeTasksMatchingRuleTypes(excludedTypes)
results.checkTask(.matchRule(["CompileMetalFile", metalFile.str])) { _ in }
results.checkNoTask()
}
try await tester.checkBuild(runDestination: runDestination, persistent: true) { results in
results.checkNoDiagnostics()
}
}
}
}