Skip to content

SwiftDriverTests: disable some tests #866

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

Merged
merged 1 commit into from
Oct 15, 2021
Merged
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
6 changes: 6 additions & 0 deletions Tests/SwiftDriverTests/ExplicitModuleBuildTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ private func pcmArgsEncodedRelativeModulePath(for moduleName: String, with pcmAr
/// Test that for the given JSON module dependency graph, valid jobs are generated
final class ExplicitModuleBuildTests: XCTestCase {
func testModuleDependencyBuildCommandGeneration() throws {
#if os(macOS)
do {
var driver = try Driver(args: ["swiftc", "-explicit-module-build",
"-module-name", "testModuleDependencyBuildCommandGeneration",
Expand Down Expand Up @@ -208,6 +209,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
}
}
}
#endif
}

func testModuleDependencyBuildCommandGenerationWithExternalFramework() throws {
Expand Down Expand Up @@ -297,6 +299,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
/// Test generation of explicit module build jobs for dependency modules when the driver
/// is invoked with -explicit-module-build
func testExplicitModuleBuildJobs() throws {
#if os(macOS)
try withTemporaryDirectory { path in
let main = path.appending(component: "testExplicitModuleBuildJobs.swift")
try localFileSystem.writeFileContents(main) {
Expand Down Expand Up @@ -444,9 +447,11 @@ final class ExplicitModuleBuildTests: XCTestCase {
}
}
}
#endif
}

func testImmediateModeExplicitModuleBuild() throws {
#if os(macOS)
try withTemporaryDirectory { path in
let main = path.appending(component: "testExplicitModuleBuildJobs.swift")
try localFileSystem.writeFileContents(main) {
Expand Down Expand Up @@ -570,6 +575,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
}
}
}
#endif
}

func testExplicitModuleBuildEndToEnd() throws {
Expand Down
2 changes: 2 additions & 0 deletions Tests/SwiftDriverTests/SwiftDriverTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2673,6 +2673,7 @@ final class SwiftDriverTests: XCTestCase {
}

func testClangTargetForExplicitModule() throws {
#if os(macOS)
// Check -clang-target is on by defualt when explicit module is on.
try withTemporaryDirectory { path in
let main = path.appending(component: "Foo.swift")
Expand Down Expand Up @@ -2706,6 +2707,7 @@ final class SwiftDriverTests: XCTestCase {
job.commandLine.contains(.flag("-clang-target"))
})
}
#endif
}

func testDisableClangTargetForImplicitModule() throws {
Expand Down