Skip to content

Commit

Permalink
mark argument parser as deprecated (swiftlang#194)
Browse files Browse the repository at this point in the history
* deprecate argument parser functionality

motivation: swift-argument-parser replaces this custom functionality, and SWiftPM has long migrated over

changes:
* mark all argument parsing APIs as deprecated
* remove the "TSCTestSupportExecutable" which is not used and uses the custom argument parser

* fixup
  • Loading branch information
tomerd authored Mar 8, 2021
1 parent 7fa3875 commit 0054181
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 181 deletions.
15 changes: 3 additions & 12 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@ let package = Package(
.library(
name: "TSCTestSupport",
targets: ["TSCTestSupport"]),
.executable(
name: "TSCTestSupportExecutable",
targets: ["TSCTestSupportExecutable"]),
],
dependencies: [

],
dependencies: [],
targets: [

// MARK: Tools support core targets
Expand Down Expand Up @@ -61,17 +56,13 @@ let package = Package(
/** Generic test support library */
name: "TSCTestSupport",
dependencies: ["TSCBasic", "TSCUtility"]),
.target(
/** Test support executable */
name: "TSCTestSupportExecutable",
dependencies: ["TSCBasic", "TSCUtility"]),


// MARK: Tools support core tests

.testTarget(
name: "TSCBasicTests",
dependencies: ["TSCTestSupport", "TSCTestSupportExecutable", "TSCclibc"]),
dependencies: ["TSCTestSupport", "TSCclibc"]),
.testTarget(
name: "TSCBasicPerformanceTests",
dependencies: ["TSCBasic", "TSCTestSupport"]),
Expand All @@ -80,7 +71,7 @@ let package = Package(
dependencies: ["TSCTestSupport"]),
.testTarget(
name: "TSCUtilityTests",
dependencies: ["TSCUtility", "TSCTestSupport", "TSCTestSupportExecutable"]),
dependencies: ["TSCUtility", "TSCTestSupport"]),
]
)

Expand Down
8 changes: 0 additions & 8 deletions Sources/TSCTestSupport/Product.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,3 @@ extension Product {
throw SwiftPMProductError.packagePathNotFound
}
}

public struct TestSupportProduct: Product {
public var exec: RelativePath {
return RelativePath("TSCTestSupportExecutable")
}
}

public let TestSupportExecutable = TestSupportProduct()
131 changes: 0 additions & 131 deletions Sources/TSCTestSupportExecutable/main.swift

This file was deleted.

Loading

0 comments on commit 0054181

Please sign in to comment.