Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update SPM version to 0.6.0 #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/onevcat/Rainbow.git", from: "3.1.5"),
.package(url: "https://github.com/apple/swift-package-manager.git", from: "0.4.0"),
.package(url: "https://github.com/apple/swift-package-manager.git", from: "0.6.0"),
.package(url: "https://github.com/apple/swift-tools-support-core.git", .exact("0.1.0"))
],
targets: [
.target(
name: "LiteSupport",
dependencies: ["Rainbow", "SPMUtility"]),
dependencies: ["Rainbow", .product(name: "SwiftToolsSupport", package: "swift-tools-support-core")]),

// This needs to be named `lite-test` instead of `lite` because consumers
// of `lite` should use the target name `lite`.
Expand Down
33 changes: 2 additions & 31 deletions Sources/LiteSupport/TestRunner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

import Foundation
import Rainbow
import Basic
import POSIX
import TSCBasic
import Dispatch

/// Specifies how to parallelize test runs.
Expand Down Expand Up @@ -265,7 +264,7 @@ class TestRunner {
stderr = error.description
stdout = ""
exitCode = Int(error.exitCode)
} catch let error as Basic.Process.Error {
} catch let error as TSCBasic.Process.Error {
stderr = error.description
stdout = ""
exitCode = Int(EXIT_FAILURE)
Expand All @@ -291,52 +290,24 @@ extension SystemError {
return errno
case .close(let errno):
return errno
case .dirfd(let errno, _):
return errno
case .exec(let errno, _, _):
return errno
case .fgetc(let errno):
return errno
case .fread(let errno):
return errno
case .getcwd(let errno):
return errno
case .mkdir(let errno, _):
return errno
case .mkdtemp(let errno):
return errno
case .pipe(let errno):
return errno
case .posix_spawn(let errno, _):
return errno
case .popen(let errno, _):
return errno
case .read(let errno):
return errno
case .readdir(let errno, _):
return errno
case .realpath(let errno, _):
return errno
case .rename(let errno, _, _):
return errno
case .rmdir(let errno, _):
return errno
case .setenv(let errno, _):
return errno
case .stat(let errno, _):
return errno
case .symlink(let errno, _, _):
return errno
case .symlinkat(let errno, _):
return errno
case .unlink(let errno, _):
return errno
case .unsetenv(let errno, _):
return errno
case .waitpid(let errno):
return errno
case .usleep(let errno):
return errno
}
}
}