@@ -70,7 +70,7 @@ final class PluginTests: XCTestCase {
7070 XCTAssert ( stdout. contains ( " Build of product 'MyTool' complete! " ) , " stdout: \n \( stdout) " )
7171 }
7272
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
7474 // Try again with the Swift Build build system
7575 try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
7676 let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " MySourceGenClient " ) , configuration: . Debug, extraArgs: [ " --build-system " , " swiftbuild " , " --product " , " MyTool " ] )
@@ -92,7 +92,7 @@ final class PluginTests: XCTestCase {
9292 XCTAssert ( stdout. contains ( " Build of product 'MyOtherLocalTool' complete! " ) , " stdout: \n \( stdout) " )
9393 }
9494
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
9696 try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
9797 let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " MySourceGenPlugin " ) , configuration: . Debug, extraArgs: [ " --build-system " , " swiftbuild " , " --product " , " MyOtherLocalTool " ] )
9898 XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
@@ -115,7 +115,7 @@ final class PluginTests: XCTestCase {
115115 XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
116116 }
117117
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
119119 // Try again with the Swift Build build system
120120 try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
121121 let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " ClientOfPluginWithInternalExecutable " ) , extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -136,13 +136,11 @@ final class PluginTests: XCTestCase {
136136 }
137137 }
138138
139- #if os(macOS) // See https://github.com/swiftlang/swift-package-manager/issues/8416 for errors running build tools on Linux
140139 try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
141140 await XCTAssertThrowsCommandExecutionError ( try await executeSwiftBuild ( fixturePath. appending ( " InvalidUseOfInternalPluginExecutable " ) ) , " Illegally used internal executable "
142141) { error in
143142 }
144143 }
145- #endif
146144 }
147145
148146 func testLocalBuildToolPluginUsingRemoteExecutable( ) async throws {
@@ -159,7 +157,7 @@ final class PluginTests: XCTestCase {
159157 XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
160158 }
161159
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
163161 // Try again with the Swift Build build system
164162 try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
165163 let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " LibraryWithLocalBuildToolPluginUsingRemoteTool " ) , extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -182,7 +180,7 @@ final class PluginTests: XCTestCase {
182180 XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
183181 }
184182
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)
186184 // Try again with the Swift Build build system
187185 try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
188186 let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " MyBuildToolPluginDependencies " ) , extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -204,7 +202,7 @@ final class PluginTests: XCTestCase {
204202 XCTAssert ( stdout. contains ( " Build of product 'MyLocalTool' complete! " ) , " stdout: \n \( stdout) " )
205203 }
206204
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
208206 try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
209207 let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " ContrivedTestPlugin " ) , configuration: . Debug, extraArgs: [ " --build-system " , " swiftbuild " , " --product " , " MyLocalTool " , " --disable-sandbox " ] )
210208 XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
@@ -1158,7 +1156,7 @@ final class PluginTests: XCTestCase {
11581156 XCTAssert ( stdout. contains ( " type of snippet target: snippet " ) , " output: \n \( stderr) \n \( stdout) " )
11591157 }
11601158
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
11621160 // Try again with the Swift Build build system
11631161 try await fixture ( name: " Miscellaneous/Plugins " ) { path in
11641162 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 {
11751173 XCTAssert ( stdout. contains ( " Build complete! " ) , " output: \n \( stderr) \n \( stdout) " )
11761174 }
11771175
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
11791177 // Try again with the Swift Build build system
11801178 try await fixture ( name: " Miscellaneous/Plugins " ) { path in
11811179 let ( stdout, stderr) = try await executeSwiftBuild ( path. appending ( " IncorrectDependencies " ) , extraArgs: [ " --build-system " , " swiftbuild " , " --build-tests " ] )
@@ -1219,7 +1217,7 @@ final class PluginTests: XCTestCase {
12191217 XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
12201218 }
12211219
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
12231221 // Try again with Swift Build build system
12241222 try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
12251223 let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " TransitivePluginOnlyDependency " ) , extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -1240,7 +1238,7 @@ final class PluginTests: XCTestCase {
12401238 }
12411239 }
12421240
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
12441242 try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
12451243 do {
12461244 try await executeSwiftBuild ( fixturePath. appending ( " MissingPlugin " ) , extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -1262,7 +1260,7 @@ final class PluginTests: XCTestCase {
12621260 XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
12631261 }
12641262
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
12661264 // Try again with the Swift Build build system
12671265 try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
12681266 let ( stdout, _) = try await executeSwiftBuild ( fixturePath. appending ( " PluginCanBeReferencedByProductName " ) , extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -1292,7 +1290,7 @@ final class PluginTests: XCTestCase {
12921290 XCTAssert ( stdout. contains ( " Build of product 'MyLocalTool' complete! " ) , " stdout: \n \( stdout) " )
12931291 }
12941292
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)
12961294 try await fixture ( name: " Miscellaneous/Plugins " ) { fixturePath in
12971295 let ( stdout, stderr) = try await executeSwiftBuild (
12981296 fixturePath. appending ( component: " MySourceGenPlugin " ) ,
@@ -1315,8 +1313,7 @@ final class PluginTests: XCTestCase {
13151313 let ( stdout, _) = try await executeSwiftBuild ( fixturePath, configuration: . Debug)
13161314 XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
13171315 }
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)
13201317 // Try again with the Swift Build build system
13211318 try await fixture ( name: " Miscellaneous/Plugins/MySourceGenPluginUsingURLBasedAPI " ) { fixturePath in
13221319 let ( stdout, _) = try await executeSwiftBuild ( fixturePath, configuration: . Debug, extraArgs: [ " --build-system " , " swiftbuild " ] )
@@ -1333,7 +1330,7 @@ final class PluginTests: XCTestCase {
13331330 XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
13341331 }
13351332
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
13371334 try await fixture ( name: " Miscellaneous/Plugins/DependentPlugins " ) { fixturePath in
13381335 let ( stdout, _) = try await executeSwiftBuild ( fixturePath, extraArgs: [ " --build-system " , " swiftbuild " ] )
13391336 XCTAssert ( stdout. contains ( " Build complete! " ) , " stdout: \n \( stdout) " )
0 commit comments