@@ -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,40 @@ 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_RHELEndToEndTests : XCTestCase {
781+ let config = SDKConfiguration (
782+ swiftVersion: " 6.2 " ,
783+ linuxDistributionName: " rhel " ,
784+ linuxDistributionVersion: " ubi9 " ,
785+ architecture: " aarch64 " ,
786+ withDocker: true // RHEL-based SDKs can only be built from containers
787+ )
788+
789+ func testAarch64FromContainer( ) async throws {
790+ try skipSlow ( )
791+ try await buildTestcases ( config: config. withArchitecture ( " aarch64 " ) )
792+ }
793+
794+ func testX86_64FromContainer( ) async throws {
795+ try skipSlow ( )
796+ try await buildTestcases ( config: config. withArchitecture ( " x86_64 " ) )
797+ }
798+
799+ func testAmazonLinux2Aarch64FromContainer( ) async throws {
800+ try skipSlow ( )
801+ try await buildTestcases (
802+ config: config. withArchitecture ( " aarch64 " ) . withContainerImageSuffix ( " amazonlinux2 " )
803+ )
804+ }
805+
806+ func testAmazonLinux2X86_64FromContainer( ) async throws {
807+ try skipSlow ( )
808+ try await buildTestcases (
809+ config: config. withArchitecture ( " x86_64 " ) . withContainerImageSuffix ( " amazonlinux2 " )
810+ )
811+ }
812+ }
813+
723814final class Swift59_RHELEndToEndTests : XCTestCase {
724815 let config = SDKConfiguration (
725816 swiftVersion: " 5.9.2 " ,
@@ -883,3 +974,37 @@ final class Swift61_RHELEndToEndTests: XCTestCase {
883974 )
884975 }
885976}
977+
978+ final class Swift62_RHELEndToEndTests : XCTestCase {
979+ let config = SDKConfiguration (
980+ swiftVersion: " 6.2 " ,
981+ linuxDistributionName: " rhel " ,
982+ linuxDistributionVersion: " ubi9 " ,
983+ architecture: " aarch64 " ,
984+ withDocker: true // RHEL-based SDKs can only be built from containers
985+ )
986+
987+ func testAarch64FromContainer( ) async throws {
988+ try skipSlow ( )
989+ try await buildTestcases ( config: config. withArchitecture ( " aarch64 " ) )
990+ }
991+
992+ func testX86_64FromContainer( ) async throws {
993+ try skipSlow ( )
994+ try await buildTestcases ( config: config. withArchitecture ( " x86_64 " ) )
995+ }
996+
997+ func testAmazonLinux2Aarch64FromContainer( ) async throws {
998+ try skipSlow ( )
999+ try await buildTestcases (
1000+ config: config. withArchitecture ( " aarch64 " ) . withContainerImageSuffix ( " amazonlinux2 " )
1001+ )
1002+ }
1003+
1004+ func testAmazonLinux2X86_64FromContainer( ) async throws {
1005+ try skipSlow ( )
1006+ try await buildTestcases (
1007+ config: config. withArchitecture ( " x86_64 " ) . withContainerImageSuffix ( " amazonlinux2 " )
1008+ )
1009+ }
1010+ }
0 commit comments