Skip to content

Commit

Permalink
Convert SwiftPM tests to use latest manifests
Browse files Browse the repository at this point in the history
<rdar://problem/42022436> Convert SwiftPM tests in swift-integration repo to PackageDescription4
  • Loading branch information
ankitspd committed Jul 12, 2018
1 parent a39ef35 commit 4ba2d66
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 23 deletions.
9 changes: 5 additions & 4 deletions swift-build.txt
@@ -1,8 +1,6 @@
// swift-tools-version:4.2
// Trivial test for Swift build.
//
// <rdar://problem/42022436> Convert SwiftPM tests in swift-integration repo to PackageDescription4
// REQUIRES: disabled
//
// Make a sandbox dir.
// RUN: rm -rf %t.dir
// RUN: mkdir -p %t.dir/tool
Expand All @@ -27,5 +25,8 @@
import PackageDescription

let package = Package(
name: "tool"
name: "tool",
targets: [
.target(name: "tool", path: "./"),
]
)
9 changes: 5 additions & 4 deletions swift-package-with-spaces.txt
@@ -1,8 +1,6 @@
// swift-tools-version:4.2
// Check a package with spaces.
//
// <rdar://problem/42022436> Convert SwiftPM tests in swift-integration repo to PackageDescription4
// REQUIRES: disabled
//
// Make a sandbox dir.
// RUN: rm -rf %t.dir
// RUN: mkdir -p %t.dir/more\ spaces/special\ tool
Expand All @@ -28,5 +26,8 @@
import PackageDescription

let package = Package(
name: "special tool"
name: "special tool",
targets: [
.target(name: "special tool", path: "./"),
]
)
5 changes: 4 additions & 1 deletion test-complex-xctest-package/SwiftCMixed/Package.swift
@@ -1,8 +1,11 @@
// swift-tools-version:4.2
import PackageDescription

let package = Package(
name: "SwiftCMixed",
targets: [
Target(name: "swifty", dependencies: ["see"]),
.target(name: "swifty", dependencies: ["see"]),
.target(name: "see", dependencies: []),
.testTarget(name: "swiftyTests", dependencies: ["swifty"]),
]
)
3 changes: 0 additions & 3 deletions test-complex-xctest-package/test-xctest-package.txt
@@ -1,8 +1,5 @@
// Check if test modules can import Swift modules which depend on C module.
//
// <rdar://problem/42022436> Convert SwiftPM tests in swift-integration repo to PackageDescription4
// REQUIRES: disabled
//
// Make a sandbox dir.
// RUN: rm -rf %t.dir
// RUN: mkdir -p %t.dir
Expand Down
9 changes: 5 additions & 4 deletions test-foundation-package/test-foundation-package.txt
@@ -1,8 +1,6 @@
// swift-tools-version:4.2
// Trivial test for importing Foundation
//
// <rdar://problem/42022436> Convert SwiftPM tests in swift-integration repo to PackageDescription4
// REQUIRES: disabled
//
// Make a sandbox dir.
// RUN: rm -rf %t.dir
// RUN: mkdir -p %t.dir/tool
Expand All @@ -29,5 +27,8 @@
import PackageDescription

let package = Package(
name: "tool"
name: "tool",
targets: [
.target(name: "tool", path: "./"),
]
)
12 changes: 5 additions & 7 deletions test-xctest-package/test-xctest-package.txt
@@ -1,11 +1,6 @@
// swift-tools-version:4.2
// Trivial test for importing XCTest.
//
// <rdar://problem/42022436> Convert SwiftPM tests in swift-integration repo to PackageDescription4
// REQUIRES: disabled
//
// This test doesn't work on Darwin yet, because the XCTest overlay isn't shipped
// with the package, and can't be found:#
// <rdar://problem/23600043> Cannot import XCTest with swift from a downloadable package
// REQUIRES: platform=Linux
//
// Make a sandbox dir.
Expand All @@ -32,5 +27,8 @@
import PackageDescription

let package = Package(
name: "tool"
name: "tool",
targets: [
.target(name: "tool", path: "./"),
]
)

0 comments on commit 4ba2d66

Please sign in to comment.