Remove LinuxMain.swift and XCTestManifests.swift

Tests are automatically discovered on all platforms in Swift 5.4.
This commit is contained in:
YOCKOW 2021-05-09 18:19:16 +09:00
parent be8c838445
commit b9c3ac5028
3 changed files with 0 additions and 38 deletions

View File

@ -46,11 +46,6 @@ jobs:
- name: Clean debug build directory if necessary
if: steps.debug_build.outcome == 'failure'
run: rm -rf $(cd .build/debug && pwd -P)
- name: Check XCTestManifests.swift
if: runner.os == 'macOS'
run: |
swift test --generate-linuxmain -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
git diff --exit-code
- name: Test with debug mode.
run: swift test --configuration debug -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
# RELEASE mode

View File

@ -1,8 +0,0 @@
import XCTest
import TimeSpecificationTests
var tests = [XCTestCaseEntry]()
tests += TimeSpecificationTests.__allTests()
XCTMain(tests)

View File

@ -1,25 +0,0 @@
#if !canImport(ObjectiveC)
import XCTest
extension TimeSpecificationTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__TimeSpecificationTests = [
("test_codable", test_codable),
("test_comparison", test_comparison),
("test_date", test_date),
("test_description", test_description),
("test_floatLiteral", test_floatLiteral),
("test_integerLiteral", test_integerLiteral),
("test_normalization", test_normalization),
("test_sumAndDifference", test_sumAndDifference),
]
}
public func __allTests() -> [XCTestCaseEntry] {
return [
testCase(TimeSpecificationTests.__allTests__TimeSpecificationTests),
]
}
#endif