@@ -541,6 +541,63 @@ final class Swift61_UbuntuEndToEndTests: XCTestCase {
541541 )
542542 }
543543}
544+ final class Swift62_UbuntuEndToEndTests : XCTestCase {
545+ let config = SDKConfiguration (
546+ swiftVersion: " 6.2 " ,
547+ linuxDistributionName: " ubuntu " ,
548+ linuxDistributionVersion: " 24.04 " ,
549+ architecture: " aarch64 " ,
550+ withDocker: false
551+ )
552+
553+ func testAarch64Direct( ) async throws {
554+ try skipSlow ( )
555+ try await buildTestcases ( config: config. withArchitecture ( " aarch64 " ) )
556+ }
557+
558+ func testX86_64Direct( ) async throws {
559+ try skipSlow ( )
560+ try await buildTestcases ( config: config. withArchitecture ( " x86_64 " ) )
561+ }
562+
563+ func testAarch64FromContainer( ) async throws {
564+ try skipSlow ( )
565+ try await buildTestcases ( config: config. withArchitecture ( " aarch64 " ) . withDocker ( ) )
566+ }
567+
568+ func testX86_64FromContainer( ) async throws {
569+ try skipSlow ( )
570+ try await buildTestcases ( config: config. withArchitecture ( " x86_64 " ) . withDocker ( ) )
571+ }
572+
573+ func testJammyAarch64Direct( ) async throws {
574+ try skipSlow ( )
575+ try await buildTestcases (
576+ config: config. withArchitecture ( " aarch64 " ) . withLinuxDistributionVersion ( " 22.04 " )
577+ )
578+ }
579+
580+ func testJammyX86_64Direct( ) async throws {
581+ try skipSlow ( )
582+ try await buildTestcases (
583+ config: config. withArchitecture ( " x86_64 " ) . withLinuxDistributionVersion ( " 22.04 " )
584+ )
585+ }
586+
587+ func testJammyAarch64FromContainer( ) async throws {
588+ try skipSlow ( )
589+ try await buildTestcases (
590+ config: config. withArchitecture ( " aarch64 " ) . withLinuxDistributionVersion ( " 22.04 " ) . withDocker ( )
591+ )
592+ }
593+
594+ func testJammyX86_64FromContainer( ) async throws {
595+ try skipSlow ( )
596+ try await buildTestcases (
597+ config: config. withArchitecture ( " x86_64 " ) . withLinuxDistributionVersion ( " 22.04 " ) . withDocker ( )
598+ )
599+ }
600+ }
544601
545602final class Swift59_DebianEndToEndTests : XCTestCase {
546603 let config = SDKConfiguration (
@@ -720,6 +777,53 @@ final class Swift61_DebianEndToEndTests: XCTestCase {
720777 // generating this container for you automatically, so we do not test this scenario.
721778}
722779
780+ final class Swift62_DebianEndToEndTests : XCTestCase {
781+ let config = SDKConfiguration (
782+ swiftVersion: " 6.2 " ,
783+ linuxDistributionName: " debian " ,
784+ linuxDistributionVersion: " 12 " ,
785+ architecture: " aarch64 " ,
786+ withDocker: false
787+ )
788+
789+ func testBookwormAarch64Direct( ) async throws {
790+ try skipSlow ( )
791+ try await buildTestcases ( config: config. withArchitecture ( " aarch64 " ) )
792+ }
793+
794+ func testBookwormX86_64Direct( ) async throws {
795+ try skipSlow ( )
796+ try await buildTestcases ( config: config. withArchitecture ( " x86_64 " ) )
797+ }
798+
799+ func testBookwormAarch64FromContainer( ) async throws {
800+ try skipSlow ( )
801+ try await buildTestcases ( config: config. withArchitecture ( " aarch64 " ) . withDocker ( ) )
802+ }
803+
804+ func testBookwormX86_64FromContainer( ) async throws {
805+ try skipSlow ( )
806+ try await buildTestcases ( config: config. withArchitecture ( " x86_64 " ) . withDocker ( ) )
807+ }
808+
809+ func testBullseyeAarch64Direct( ) async throws {
810+ try skipSlow ( )
811+ try await buildTestcases (
812+ config: config. withLinuxDistributionVersion ( " 11 " ) . withArchitecture ( " aarch64 " )
813+ )
814+ }
815+
816+ func testBullseyeX86_64Direct( ) async throws {
817+ try skipSlow ( )
818+ try await buildTestcases (
819+ config: config. withLinuxDistributionVersion ( " 11 " ) . withArchitecture ( " x86_64 " )
820+ )
821+ }
822+
823+ // NOTE: Debian 11 containers do not exist for Swift, and the generator does not support
824+ // generating this container for you automatically, so we do not test this scenario.
825+ }
826+
723827final class Swift59_RHELEndToEndTests : XCTestCase {
724828 let config = SDKConfiguration (
725829 swiftVersion: " 5.9.2 " ,
@@ -883,3 +987,37 @@ final class Swift61_RHELEndToEndTests: XCTestCase {
883987 )
884988 }
885989}
990+
991+ final class Swift62_RHELEndToEndTests : XCTestCase {
992+ let config = SDKConfiguration (
993+ swiftVersion: " 6.2 " ,
994+ linuxDistributionName: " rhel " ,
995+ linuxDistributionVersion: " ubi9 " ,
996+ architecture: " aarch64 " ,
997+ withDocker: true // RHEL-based SDKs can only be built from containers
998+ )
999+
1000+ func testAarch64FromContainer( ) async throws {
1001+ try skipSlow ( )
1002+ try await buildTestcases ( config: config. withArchitecture ( " aarch64 " ) )
1003+ }
1004+
1005+ func testX86_64FromContainer( ) async throws {
1006+ try skipSlow ( )
1007+ try await buildTestcases ( config: config. withArchitecture ( " x86_64 " ) )
1008+ }
1009+
1010+ func testAmazonLinux2Aarch64FromContainer( ) async throws {
1011+ try skipSlow ( )
1012+ try await buildTestcases (
1013+ config: config. withArchitecture ( " aarch64 " ) . withContainerImageSuffix ( " amazonlinux2 " )
1014+ )
1015+ }
1016+
1017+ func testAmazonLinux2X86_64FromContainer( ) async throws {
1018+ try skipSlow ( )
1019+ try await buildTestcases (
1020+ config: config. withArchitecture ( " x86_64 " ) . withContainerImageSuffix ( " amazonlinux2 " )
1021+ )
1022+ }
1023+ }
0 commit comments