Skip to content

Commit

Permalink
Remove integration test which cannot work with target-based dependenc…
Browse files Browse the repository at this point in the history
…y resolution

As discussed in the original PR swiftlang#2749, we no longer support building arbitrary targets using `--target`, but this test was relying on it. We removed a similar test from the unit tests and should do the same with this one.
  • Loading branch information
neonichu committed Dec 18, 2020
1 parent 0771944 commit 2a9acfa
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions IntegrationTests/Tests/IntegrationTests/XCBuildTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,25 +94,6 @@ final class XCBuildTests: XCTestCase {
XCTAssertFileExists(releasePath.appending(component: "bar"))
XCTAssertNoSuchPath(releasePath.appending(component: "cbar"))
}

fixture(name: "XCBuild/ExecutableProducts") { path in
let fooPath = path.appending(component: "Foo")
let binaryPath = fooPath.appending(components: ".build", "apple", "Products")

try sh(swiftBuild, "--package-path", fooPath, "--build-system", "xcode", "--target", "cbar")
let debugPath = binaryPath.appending(component: "Debug")
XCTAssertNoSuchPath(debugPath.appending(component: "foo"))
XCTAssertNoSuchPath(debugPath.appending(component: "cfoo"))
XCTAssertNoSuchPath(debugPath.appending(component: "bar"))
XCTAssertFileExists(debugPath.appending(component: "cbar"))

try sh(swiftBuild, "--package-path", fooPath, "--build-system", "xcode", "--target", "cbar", "-c", "release")
let releasePath = binaryPath.appending(component: "Release")
XCTAssertNoSuchPath(releasePath.appending(component: "foo"))
XCTAssertNoSuchPath(releasePath.appending(component: "cfoo"))
XCTAssertNoSuchPath(releasePath.appending(component: "bar"))
XCTAssertFileExists(releasePath.appending(component: "cbar"))
}
}

func testTestProducts() throws {
Expand Down

0 comments on commit 2a9acfa

Please sign in to comment.