Skip to content

Commit 95b78b4

Browse files
committed
tests: Run tests on Linux CI
The EndToEnd tests cannot currently be run: * they deadlock when run under `swift test` (#143) * the CI requires the use of an HTTP proxy to download from the Internet, but SDK generator does not support proxies (#145) The tests are not compiled on macOS, but this commit marks them with `XCTSkip` so they are not run on Linux either. Future commits will loosen these restrictions. Fixes #45
1 parent fd3aef5 commit 95b78b4

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

Docker/docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ services:
2525

2626
test:
2727
<<: *common
28-
command: /bin/bash -xcl "./Utilities/test.sh $${WARN_AS_ERROR_ARG-} $${SANITIZER_ARG-} $${IMPORT_CHECK_ARG-}"
28+
command: /bin/bash -xcl "swift test $${WARN_AS_ERROR_ARG-} $${SANITIZER_ARG-} $${IMPORT_CHECK_ARG-}"
2929

3030
# util
3131

Tests/SwiftSDKGeneratorTests/EndToEndTests.swift

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ final class EndToEndTests: XCTestCase {
3939

4040
#if !os(macOS)
4141
func testPackageInitExecutable() async throws {
42+
throw XCTSkip("EndToEnd tests currently deadlock under `swift test`: https://github.com/swiftlang/swift-sdk-generator/issues/143")
43+
4244
let fm = FileManager.default
4345

4446
var packageDirectory = FilePath(#filePath)
@@ -102,6 +104,8 @@ final class EndToEndTests: XCTestCase {
102104
}
103105

104106
func testRepeatedSDKBuilds() async throws {
107+
throw XCTSkip("EndToEnd tests currently deadlock under `swift test`: https://github.com/swiftlang/swift-sdk-generator/issues/143")
108+
105109
let fm = FileManager.default
106110

107111
var packageDirectory = FilePath(#filePath)

Utilities/test.sh

-20
This file was deleted.

0 commit comments

Comments
 (0)