Skip to content

Commit

Permalink
Rename package to ProcessRunner (#11)
Browse files Browse the repository at this point in the history
Apple has a new System framework, so choosing a more appropriate name for this one.
  • Loading branch information
eneko authored Jun 26, 2020
1 parent 78431d8 commit bef83ab
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
excluded:
- .build
- Tests/LinuxMain.swift
- Tests/SystemTests/XCTestManifests.swift
- Tests/ProcessRunnerTests/XCTestManifests.swift


opt_in_rules:
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ script:
- swift test --parallel
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
swift package generate-xcodeproj --enable-code-coverage;
xcodebuild -scheme System-Package test;
xcodebuild -scheme ProcessRunner-Package test;
fi

after_success:
Expand Down
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
import PackageDescription

let package = Package(
name: "System",
name: "ProcessRunner",
platforms: [
.macOS(.v10_13)
],
products: [
.library(name: "System", targets: ["System"])
.library(name: "ProcessRunner", targets: ["ProcessRunner"])
],
targets: [
.target(name: "System", dependencies: []),
.testTarget(name: "SystemTests", dependencies: ["System"])
.target(name: "ProcessRunner", dependencies: []),
.testTarget(name: "ProcessRunnerTests", dependencies: ["ProcessRunner"])
]
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import XCTest

import SystemTests
import ProcessRunnerTests

var tests = [XCTestCaseEntry]()
tests += SystemTests.__allTests()
tests += ProcessRunnerTests.__allTests()

XCTMain(tests)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XCTest
import System
import ProcessRunner

final class CurrentDirectoryTests: XCTestCase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XCTest
import System
import ProcessRunner

final class ProcessRunnerTests: XCTestCase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XCTest
import System
import ProcessRunner

final class StandardErrorTests: XCTestCase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XCTest
import System
import ProcessRunner

final class StandardOutputTests: XCTestCase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XCTest
import System
import ProcessRunner

final class SuccessFailureTests: XCTestCase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
#if !canImport(ObjectiveC)
import XCTest

extension CurrentDirectoryTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__CurrentDirectoryTests = [
("testCurrentDirectory", testCurrentDirectory),
("testCurrentDirectoryCommand", testCurrentDirectoryCommand),
("testCurrentDirectoryShell", testCurrentDirectoryShell),
]
}

extension ProcessRunnerTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__ProcessRunnerTests = [
("testShell", testShell),
("testWhich", testWhich)
("testWhich", testWhich),
]
}

Expand All @@ -17,7 +28,7 @@ extension StandardErrorTests {
// to regenerate.
static let __allTests__StandardErrorTests = [
("testStandardError", testStandardError),
("testStandardErrorShell", testStandardErrorShell)
("testStandardErrorShell", testStandardErrorShell),
]
}

Expand All @@ -35,7 +46,7 @@ extension StandardOutputTests {
("testShell", testShell),
("testShellPipe", testShellPipe),
("testShellRedirect", testShellRedirect),
("testShellRedirectPipe", testShellRedirectPipe)
("testShellRedirectPipe", testShellRedirectPipe),
]
}

Expand All @@ -46,16 +57,17 @@ extension SuccessFailureTests {
static let __allTests__SuccessFailureTests = [
("testFailure", testFailure),
("testProcessNotFound", testProcessNotFound),
("testSuccess", testSuccess)
("testSuccess", testSuccess),
]
}

public func __allTests() -> [XCTestCaseEntry] {
return [
testCase(CurrentDirectoryTests.__allTests__CurrentDirectoryTests),
testCase(ProcessRunnerTests.__allTests__ProcessRunnerTests),
testCase(StandardErrorTests.__allTests__StandardErrorTests),
testCase(StandardOutputTests.__allTests__StandardOutputTests),
testCase(SuccessFailureTests.__allTests__SuccessFailureTests)
testCase(SuccessFailureTests.__allTests__SuccessFailureTests),
]
}
#endif

0 comments on commit bef83ab

Please sign in to comment.