Skip to content

Commit 0054181

Browse files
authored
mark argument parser as deprecated (#194)
* 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
1 parent 7fa3875 commit 0054181

File tree

7 files changed

+71
-181
lines changed

7 files changed

+71
-181
lines changed

Package.swift

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,8 @@ let package = Package(
2727
.library(
2828
name: "TSCTestSupport",
2929
targets: ["TSCTestSupport"]),
30-
.executable(
31-
name: "TSCTestSupportExecutable",
32-
targets: ["TSCTestSupportExecutable"]),
33-
],
34-
dependencies: [
35-
3630
],
31+
dependencies: [],
3732
targets: [
3833

3934
// MARK: Tools support core targets
@@ -61,17 +56,13 @@ let package = Package(
6156
/** Generic test support library */
6257
name: "TSCTestSupport",
6358
dependencies: ["TSCBasic", "TSCUtility"]),
64-
.target(
65-
/** Test support executable */
66-
name: "TSCTestSupportExecutable",
67-
dependencies: ["TSCBasic", "TSCUtility"]),
6859

6960

7061
// MARK: Tools support core tests
7162

7263
.testTarget(
7364
name: "TSCBasicTests",
74-
dependencies: ["TSCTestSupport", "TSCTestSupportExecutable", "TSCclibc"]),
65+
dependencies: ["TSCTestSupport", "TSCclibc"]),
7566
.testTarget(
7667
name: "TSCBasicPerformanceTests",
7768
dependencies: ["TSCBasic", "TSCTestSupport"]),
@@ -80,7 +71,7 @@ let package = Package(
8071
dependencies: ["TSCTestSupport"]),
8172
.testTarget(
8273
name: "TSCUtilityTests",
83-
dependencies: ["TSCUtility", "TSCTestSupport", "TSCTestSupportExecutable"]),
74+
dependencies: ["TSCUtility", "TSCTestSupport"]),
8475
]
8576
)
8677

Sources/TSCTestSupport/Product.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,3 @@ extension Product {
122122
throw SwiftPMProductError.packagePathNotFound
123123
}
124124
}
125-
126-
public struct TestSupportProduct: Product {
127-
public var exec: RelativePath {
128-
return RelativePath("TSCTestSupportExecutable")
129-
}
130-
}
131-
132-
public let TestSupportExecutable = TestSupportProduct()

Sources/TSCTestSupportExecutable/main.swift

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)