@@ -33,7 +33,7 @@ public class ParserTests: XCTestCase {
33
33
}
34
34
}
35
35
36
- /// Run parsr tests on all of the Swift files in the
36
+ /// Run parsr tests on all of the Swift files in the given path, recursively.
37
37
func runParserTests(
38
38
name: String , path: URL , checkDiagnostics: Bool ,
39
39
shouldExclude: ( URL ) -> Bool = { _ in false }
@@ -76,6 +76,9 @@ public class ParserTests: XCTestCase {
76
76
)
77
77
}
78
78
79
+ /// Test all of the files in the "test" directory of the main Swift compiler.
80
+ /// This requires the Swift compiler to have been checked out into the "swift"
81
+ /// directory alongside swift-syntax.
79
82
func testSwiftTestsuite( ) throws {
80
83
try XCTSkipIf ( ProcessInfo . processInfo. environment [ " SKIP_SELF_PARSE " ] == " 1 " )
81
84
let testDir = URL ( fileURLWithPath: #file)
@@ -97,6 +100,9 @@ public class ParserTests: XCTestCase {
97
100
)
98
101
}
99
102
103
+ /// Test all of the files in the "validation-text" directory of the main
104
+ /// Swift compiler. This requires the Swift compiler to have been checked
105
+ /// out into the "swift" directory alongside swift-syntax.
100
106
func testSwiftValidationTestsuite( ) throws {
101
107
try XCTSkipIf ( ProcessInfo . processInfo. environment [ " SKIP_SELF_PARSE " ] == " 1 " )
102
108
let testDir = URL ( fileURLWithPath: #file)
@@ -139,6 +145,7 @@ public class ParserTests: XCTestCase {
139
145
|| fileURL. absoluteString. contains ( " 26101-swift-parser-parsenewdeclattribute.swift " )
140
146
|| fileURL. absoluteString. contains ( " 26773-swift-diagnosticengine-diagnose.swift " )
141
147
|| fileURL. absoluteString. contains ( " parser-cutoff.swift " )
148
+ || fileURL. absoluteString. contains ( " 26233-swift-iterabledeclcontext-getmembers.swift " )
142
149
}
143
150
)
144
151
}
0 commit comments