Skip to content

Commit 492c9c9

Browse files
Add EndToEndTests for Swift61 for Jammy as well as Noble
- Excluding Focal since it is EOL this year.
1 parent 796fc38 commit 492c9c9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Tests/SwiftSDKGeneratorTests/EndToEndTests.swift

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,12 @@ struct SDKConfiguration {
185185
return res
186186
}
187187

188+
func withLinuxDistributionVersion(_ version: String) -> SDKConfiguration {
189+
var res = self
190+
res.linuxDistributionVersion = version
191+
return res
192+
}
193+
188194
func withArchitecture(_ arch: String) -> SDKConfiguration {
189195
var res = self
190196
res.architecture = arch
@@ -475,6 +481,30 @@ final class Swift61_UbuntuEndToEndTests: XCTestCase {
475481
try skipSlow()
476482
try await buildTestcases(config: config.withArchitecture("x86_64").withDocker())
477483
}
484+
485+
func testJammyAarch64Direct() async throws {
486+
try skipSlow()
487+
try await buildTestcases(
488+
config: config.withArchitecture("aarch64").withLinuxDistributionVersion("22.04"))
489+
}
490+
491+
func testJammyX86_64Direct() async throws {
492+
try skipSlow()
493+
try await buildTestcases(
494+
config: config.withArchitecture("x86_64").withLinuxDistributionVersion("22.04"))
495+
}
496+
497+
func testJammyAarch64FromContainer() async throws {
498+
try skipSlow()
499+
try await buildTestcases(
500+
config: config.withArchitecture("aarch64").withLinuxDistributionVersion("22.04").withDocker())
501+
}
502+
503+
func testJammyX86_64FromContainer() async throws {
504+
try skipSlow()
505+
try await buildTestcases(
506+
config: config.withArchitecture("x86_64").withLinuxDistributionVersion("22.04").withDocker())
507+
}
478508
}
479509

480510
final class Swift59_RHELEndToEndTests: XCTestCase {

0 commit comments

Comments
 (0)