Skip to content

Commit b02b187

Browse files
committed
Test: Merge IntegrationTests into Tests
Consolidate all the tests into a single folders. This change only moves the IntegrationTests/Sources and IntegrationTests/Tests to their respective directory. A subsequent change will find better homes for the tests under Tests/IntegrationTests.
1 parent bdfd754 commit b02b187

File tree

56 files changed

+18
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+18
-78
lines changed

IntegrationTests/Package.swift

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

IntegrationTests/README.md

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

Package.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,13 @@ let package = Package(
778778
.unsafeFlags(["-static"]),
779779
]
780780
),
781+
.target(
782+
/** SwiftPM internal test suite support library */
783+
name: "_IntegrationTestSupport",
784+
dependencies: [
785+
.product(name: "TSCTestSupport", package: "swift-tools-support-core"),
786+
]
787+
),
781788

782789
.target(
783790
/** Test for thread-sanitizer. */
@@ -977,6 +984,14 @@ if ProcessInfo.processInfo.environment["SWIFTCI_DISABLE_SDK_DEPENDENT_TESTS"] ==
977984
"_InternalTestSupport"
978985
]
979986
),
987+
.testTarget(
988+
name: "IntegrationTests",
989+
dependencies: [
990+
"_IntegrationTestSupport",
991+
.product(name: "TSCTestSupport", package: "swift-tools-support-core"),
992+
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
993+
]
994+
),
980995
.testTarget(
981996
name: "CommandsTests",
982997
dependencies: [

IntegrationTests/Tests/IntegrationTests/BasicTests.swift renamed to Tests/IntegrationTests/BasicTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
import Foundation
12-
import IntegrationTestSupport
12+
import _IntegrationTestSupport
1313
import Testing
1414
import TSCBasic
1515
import TSCTestSupport

IntegrationTests/Tests/IntegrationTests/SwiftPMTests.swift renamed to Tests/IntegrationTests/SwiftPMTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
import Foundation
12-
import IntegrationTestSupport
12+
import _IntegrationTestSupport
1313
import Testing
1414
import TSCBasic
1515
import TSCTestSupport

IntegrationTests/Tests/IntegrationTests/XCBuildTests.swift renamed to Tests/IntegrationTests/XCBuildTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import TSCBasic
1212
import TSCTestSupport
13-
import IntegrationTestSupport
13+
import _IntegrationTestSupport
1414
import Testing
1515

1616
@Suite

Utilities/build-using-self

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -234,33 +234,6 @@ def main() -> None:
234234
)
235235
)
236236

237-
integration_test_dir = (REPO_ROOT_PATH / "IntegrationTests").as_posix()
238-
call(
239-
filterNone(
240-
[
241-
"swift",
242-
"package",
243-
"--package-path",
244-
integration_test_dir,
245-
"update",
246-
]
247-
)
248-
)
249-
call(
250-
filterNone(
251-
[
252-
"swift",
253-
"run",
254-
"swift-test",
255-
*global_args,
256-
"--package-path",
257-
integration_test_dir,
258-
"--parallel",
259-
*ignore_args,
260-
]
261-
)
262-
)
263-
264237
if is_on_darwin():
265238
run_bootstrap(swiftpm_bin_dir=swiftpm_bin_dir)
266239
logging.info("Done")

0 commit comments

Comments
 (0)