Skip to content

Commit ad972ad

Browse files
committed
Run --generate-linuxmain after splitting SwiftOptions into a separate module
1 parent f09b15a commit ad972ad

File tree

3 files changed

+48
-15
lines changed

3 files changed

+48
-15
lines changed

Tests/LinuxMain.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import XCTest
22

33
import SwiftDriverTests
4+
import SwiftOptionsTests
45

56
var tests = [XCTestCaseEntry]()
67
tests += SwiftDriverTests.__allTests()
8+
tests += SwiftOptionsTests.__allTests()
79

810
XCTMain(tests)

Tests/SwiftDriverTests/XCTestManifests.swift

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ extension JobExecutorTests {
2727
// to regenerate.
2828
static let __allTests__JobExecutorTests = [
2929
("testDarwinBasic", testDarwinBasic),
30+
("testInputModifiedDuringMultiJobBuild", testInputModifiedDuringMultiJobBuild),
31+
("testInputModifiedDuringSingleJobBuild", testInputModifiedDuringSingleJobBuild),
3032
("testStubProcessProtocol", testStubProcessProtocol),
3133
("testSwiftDriverExecOverride", testSwiftDriverExecOverride),
3234
]
@@ -53,18 +55,6 @@ extension PredictableRandomNumberGeneratorTests {
5355
]
5456
}
5557

56-
extension PrefixTrieTests {
57-
// DO NOT MODIFY: This is autogenerated, use:
58-
// `swift test --generate-linuxmain`
59-
// to regenerate.
60-
static let __allTests__PrefixTrieTests = [
61-
("testCollectionMatching", testCollectionMatching),
62-
("testManyMatchingPrefixes", testManyMatchingPrefixes),
63-
("testSimpleTrie", testSimpleTrie),
64-
("testUpdating", testUpdating),
65-
]
66-
}
67-
6858
extension StringAdditionsTests {
6959
// DO NOT MODIFY: This is autogenerated, use:
7060
// `swift test --generate-linuxmain`
@@ -81,7 +71,9 @@ extension SwiftDriverTests {
8171
// `swift test --generate-linuxmain`
8272
// to regenerate.
8373
static let __allTests__SwiftDriverTests = [
74+
("testBaseOutputPaths", testBaseOutputPaths),
8475
("testBatchModeCompiles", testBatchModeCompiles),
76+
("testBatchModeDiagnostics", testBatchModeDiagnostics),
8577
("testCompilerMode", testCompilerMode),
8678
("testDebugSettings", testDebugSettings),
8779
("testDOTFileEmission", testDOTFileEmission),
@@ -94,17 +86,21 @@ extension SwiftDriverTests {
9486
("testLinking", testLinking),
9587
("testMergeModulesOnly", testMergeModulesOnly),
9688
("testModuleNameFallbacks", testModuleNameFallbacks),
89+
("testModuleNaming", testModuleNaming),
9790
("testModuleSettings", testModuleSettings),
9891
("testMultiThreadedWholeModuleOptimizationCompiles", testMultiThreadedWholeModuleOptimizationCompiles),
9992
("testMultithreading", testMultithreading),
10093
("testMultithreadingDiagnostics", testMultithreadingDiagnostics),
10194
("testOutputFileMapLoading", testOutputFileMapLoading),
95+
("testOutputFileMapResolving", testOutputFileMapResolving),
10296
("testOutputFileMapStoring", testOutputFileMapStoring),
103-
("testParseErrors", testParseErrors),
104-
("testParsing", testParsing),
97+
("testPCHGeneration", testPCHGeneration),
98+
("testPCMGeneration", testPCMGeneration),
10599
("testPrimaryOutputKinds", testPrimaryOutputKinds),
106100
("testPrimaryOutputKindsDiagnostics", testPrimaryOutputKindsDiagnostics),
101+
("testPrintTargetInfo", testPrintTargetInfo),
107102
("testRegressions", testRegressions),
103+
("testRepl", testRepl),
108104
("testResponseFileExpansion", testResponseFileExpansion),
109105
("testResponseFileTokenization", testResponseFileTokenization),
110106
("testSanitizerArgs", testSanitizerArgs),
@@ -114,6 +110,9 @@ extension SwiftDriverTests {
114110
("testTargetTriple", testTargetTriple),
115111
("testToolchainClangPath", testToolchainClangPath),
116112
("testToolchainUtilities", testToolchainUtilities),
113+
("testUsingResponseFiles", testUsingResponseFiles),
114+
("testVerifyDebugInfo", testVerifyDebugInfo),
115+
("testVersionRequest", testVersionRequest),
117116
("testWholeModuleOptimizationOutputFileMap", testWholeModuleOptimizationOutputFileMap),
118117
]
119118
}
@@ -127,6 +126,7 @@ extension TripleTests {
127126
("testBasics", testBasics),
128127
("testDarwinPlatform", testDarwinPlatform),
129128
("testFileFormat", testFileFormat),
129+
("testNormalizeARM", testNormalizeARM),
130130
("testNormalizePermute", testNormalizePermute),
131131
("testNormalizeSimple", testNormalizeSimple),
132132
("testNormalizeSpecialCases", testNormalizeSpecialCases),
@@ -143,7 +143,6 @@ public func __allTests() -> [XCTestCaseEntry] {
143143
testCase(JobExecutorTests.__allTests__JobExecutorTests),
144144
testCase(ParsableMessageTests.__allTests__ParsableMessageTests),
145145
testCase(PredictableRandomNumberGeneratorTests.__allTests__PredictableRandomNumberGeneratorTests),
146-
testCase(PrefixTrieTests.__allTests__PrefixTrieTests),
147146
testCase(StringAdditionsTests.__allTests__StringAdditionsTests),
148147
testCase(SwiftDriverTests.__allTests__SwiftDriverTests),
149148
testCase(TripleTests.__allTests__TripleTests),
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#if !canImport(ObjectiveC)
2+
import XCTest
3+
4+
extension PrefixTrieTests {
5+
// DO NOT MODIFY: This is autogenerated, use:
6+
// `swift test --generate-linuxmain`
7+
// to regenerate.
8+
static let __allTests__PrefixTrieTests = [
9+
("testCollectionMatching", testCollectionMatching),
10+
("testManyMatchingPrefixes", testManyMatchingPrefixes),
11+
("testSimpleTrie", testSimpleTrie),
12+
("testUpdating", testUpdating),
13+
]
14+
}
15+
16+
extension SwiftDriverTests {
17+
// DO NOT MODIFY: This is autogenerated, use:
18+
// `swift test --generate-linuxmain`
19+
// to regenerate.
20+
static let __allTests__SwiftDriverTests = [
21+
("testParseErrors", testParseErrors),
22+
("testParsing", testParsing),
23+
]
24+
}
25+
26+
public func __allTests() -> [XCTestCaseEntry] {
27+
return [
28+
testCase(PrefixTrieTests.__allTests__PrefixTrieTests),
29+
testCase(SwiftDriverTests.__allTests__SwiftDriverTests),
30+
]
31+
}
32+
#endif

0 commit comments

Comments
 (0)