@@ -70,7 +70,7 @@ final class PluginTests: XCTestCase {
70
70
XCTAssert ( stdout. contains ( " Build of product 'MyTool' complete! " ) , " stdout: \n \( stdout) " )
71
71
}
72
72
73
- #if os(macOS ) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
73
+ #if ! os(Windows ) // https://github.com/swiftlang/swift-package-manager/issues/8774
74
74
// Try again with the Swift Build build system
75
75
try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
76
76
let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " MySourceGenClient " ) , configuration: . Debug, extraArgs: [ " --build-system " , " swiftbuild " , " --product " , " MyTool " ] )
@@ -92,7 +92,7 @@ final class PluginTests: XCTestCase {
92
92
XCTAssert ( stdout. contains ( " Build of product 'MyOtherLocalTool' complete! " ) , " stdout: \n \( stdout) " )
93
93
}
94
94
95
- #if os(macOS ) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
95
+ #if ! os(Windows ) // https://github.com/swiftlang/swift-package-manager/issues/8774
96
96
try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
97
97
let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " MySourceGenPlugin " ) , configuration: . Debug, extraArgs: [ " --build-system " , " swiftbuild " , " --product " , " MyOtherLocalTool " ] )
98
98
XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
@@ -115,7 +115,7 @@ final class PluginTests: XCTestCase {
115
115
XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
116
116
}
117
117
118
- #if os(macOS ) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
118
+ #if ! os(Windows ) // https://github.com/swiftlang/swift-package-manager/issues/8774
119
119
// Try again with the Swift Build build system
120
120
try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
121
121
let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " ClientOfPluginWithInternalExecutable " ) , extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -136,13 +136,11 @@ final class PluginTests: XCTestCase {
136
136
}
137
137
}
138
138
139
- #if os(macOS) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
140
139
try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
141
140
await XCTAssertThrowsCommandExecutionError ( try await executeSwiftBuild ( fixturePath. appending ( " InvalidUseOfInternalPluginExecutable " ) ) , " Illegally used internal executable "
142
141
) { error in
143
142
}
144
143
}
145
- #endif
146
144
}
147
145
148
146
func testLocalBuildToolPluginUsingRemoteExecutable( ) async throws {
@@ -159,7 +157,7 @@ final class PluginTests: XCTestCase {
159
157
XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
160
158
}
161
159
162
- #if os(macOS ) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
160
+ #if ! os(Windows ) // https://github.com/swiftlang/swift-package-manager/issues/8774
163
161
// Try again with the Swift Build build system
164
162
try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
165
163
let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " LibraryWithLocalBuildToolPluginUsingRemoteTool " ) , extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -182,7 +180,7 @@ final class PluginTests: XCTestCase {
182
180
XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
183
181
}
184
182
185
- #if os(macOS) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
183
+ #if os(macOS)
186
184
// Try again with the Swift Build build system
187
185
try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
188
186
let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " MyBuildToolPluginDependencies " ) , extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -204,7 +202,7 @@ final class PluginTests: XCTestCase {
204
202
XCTAssert ( stdout. contains ( " Build of product 'MyLocalTool' complete! " ) , " stdout: \n \( stdout) " )
205
203
}
206
204
207
- #if os(macOS ) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
205
+ #if ! os(Windows ) // https://github.com/swiftlang/swift-package-manager/issues/8774
208
206
try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
209
207
let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " ContrivedTestPlugin " ) , configuration: . Debug, extraArgs: [ " --build-system " , " swiftbuild " , " --product " , " MyLocalTool " , " --disable-sandbox " ] )
210
208
XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
@@ -1158,7 +1156,7 @@ final class PluginTests: XCTestCase {
1158
1156
XCTAssert ( stdout. contains ( " type of snippet target: snippet " ) , " output: \n \( stderr) \n \( stdout) " )
1159
1157
}
1160
1158
1161
- #if os(macOS ) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
1159
+ #if ! os(Windows ) // https://github.com/swiftlang/swift-package-manager/issues/8774
1162
1160
// Try again with the Swift Build build system
1163
1161
try await fixture ( name: " Miscellaneous/Plugins " ) { path in
1164
1162
let ( stdout, stderr) = try await executeSwiftPackage ( path. appending ( " PluginsAndSnippets " ) , configuration: . Debug, extraArgs: [ " --build-system " , " swiftbuild " , " do-something " ] )
@@ -1175,7 +1173,7 @@ final class PluginTests: XCTestCase {
1175
1173
XCTAssert ( stdout. contains ( " Build complete! " ) , " output: \n \( stderr) \n \( stdout) " )
1176
1174
}
1177
1175
1178
- #if os(macOS ) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
1176
+ #if ! os(Windows ) // https://github.com/swiftlang/swift-package-manager/issues/8774
1179
1177
// Try again with the Swift Build build system
1180
1178
try await fixture ( name: " Miscellaneous/Plugins " ) { path in
1181
1179
let ( stdout, stderr) = try await executeSwiftBuild ( path. appending ( " IncorrectDependencies " ) , extraArgs: [ " --build-system " , " swiftbuild " , " --build-tests " ] )
@@ -1219,7 +1217,7 @@ final class PluginTests: XCTestCase {
1219
1217
XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
1220
1218
}
1221
1219
1222
- #if os(macOS ) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
1220
+ #if ! os(Windows ) // https://github.com/swiftlang/swift-package-manager/issues/8774
1223
1221
// Try again with Swift Build build system
1224
1222
try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
1225
1223
let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " TransitivePluginOnlyDependency " ) , extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -1240,7 +1238,7 @@ final class PluginTests: XCTestCase {
1240
1238
}
1241
1239
}
1242
1240
1243
- #if os(macOS ) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
1241
+ #if ! os(Windows ) // https://github.com/swiftlang/swift-package-manager/issues/8774
1244
1242
try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
1245
1243
do {
1246
1244
try await executeSwiftBuild ( fixturePath. appending ( " MissingPlugin " ) , extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -1262,7 +1260,7 @@ final class PluginTests: XCTestCase {
1262
1260
XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
1263
1261
}
1264
1262
1265
- #if os(macOS ) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
1263
+ #if ! os(Windows ) // https://github.com/swiftlang/swift-package-manager/issues/8774
1266
1264
// Try again with the Swift Build build system
1267
1265
try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
1268
1266
let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " PluginCanBeReferencedByProductName " ) , extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -1292,7 +1290,7 @@ final class PluginTests: XCTestCase {
1292
1290
XCTAssert ( stdout. contains ( " Build of product 'MyLocalTool' complete! " ) , " stdout: \n \( stdout) " )
1293
1291
}
1294
1292
1295
- #if os(macOS) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
1293
+ #if os(macOS)
1296
1294
try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
1297
1295
let ( stdout, stderr) = try await executeSwiftBuild (
1298
1296
fixturePath. appending ( component: " MySourceGenPlugin " ) ,
@@ -1315,8 +1313,7 @@ final class PluginTests: XCTestCase {
1315
1313
let ( stdout, _) = try await executeSwiftBuild ( fixturePath, configuration: . Debug)
1316
1314
XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
1317
1315
}
1318
-
1319
- #if os(macOS) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
1316
+ #if os(macOS)
1320
1317
// Try again with the Swift Build build system
1321
1318
try await fixture ( name: " Miscellaneous/Plugins/MySourceGenPluginUsingURLBasedAPI " ) { fixturePath in
1322
1319
let ( stdout, _) = try await executeSwiftBuild ( fixturePath, configuration: . Debug, extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -1333,7 +1330,7 @@ final class PluginTests: XCTestCase {
1333
1330
XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
1334
1331
}
1335
1332
1336
- #if os(macOS ) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
1333
+ #if ! os(Windows ) // https://github.com/swiftlang/swift-package-manager/issues/8774
1337
1334
try await fixture ( name: " Miscellaneous/Plugins/DependentPlugins " ) { fixturePath in
1338
1335
let ( stdout, _) = try await executeSwiftBuild ( fixturePath, extraArgs: [ " --build-system " , " swiftbuild " ] )
1339
1336
XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
0 commit comments