@@ -6,11 +6,18 @@ using BinaryBuilderBase: RustBuild, CompilerShard
66@testset  " Expand platforms"   begin 
77    #  expand_gfortran_versions
88    @test  expand_gfortran_versions (Platform (" i686"  , " windows"  )) ==  [
9+         Platform (" i686"  , " windows"  ; libgfortran_version= v " 5"  ),
10+     ]
11+     @test  expand_gfortran_versions (Platform (" i686"  , " windows"  ); old_abis= true ) ==  [
912        Platform (" i686"  , " windows"  ; libgfortran_version= v " 3"  ),
1013        Platform (" i686"  , " windows"  ; libgfortran_version= v " 4"  ),
1114        Platform (" i686"  , " windows"  ; libgfortran_version= v " 5"  ),
1215    ]
1316    @test  expand_gfortran_versions ([Platform (" i686"  , " windows"  ), Platform (" x86_64"  , " windows"  )]) ==  [
17+         Platform (" i686"  , " windows"  ; libgfortran_version= v " 5"  ),
18+         Platform (" x86_64"  , " windows"  ; libgfortran_version= v " 5"  ),
19+     ]
20+     @test  expand_gfortran_versions ([Platform (" i686"  , " windows"  ), Platform (" x86_64"  , " windows"  )]; old_abis= true ) ==  [
1421        Platform (" i686"  , " windows"  ; libgfortran_version= v " 3"  ),
1522        Platform (" i686"  , " windows"  ; libgfortran_version= v " 4"  ),
1623        Platform (" i686"  , " windows"  ; libgfortran_version= v " 5"  ),
@@ -21,6 +28,10 @@ using BinaryBuilderBase: RustBuild, CompilerShard
2128    @test  expand_gfortran_versions ([Platform (" x86_64"  , " freebsd"  ; libgfortran_version= v " 3"  )]) == 
2229        [Platform (" x86_64"  , " freebsd"  ; libgfortran_version= v " 3"  )]
2330    @test  expand_gfortran_versions ([Platform (" x86_64"  , " macos"  ), Platform (" aarch64"  , " macos"  )]) ==  [
31+         Platform (" x86_64"  ,  " macos"  ; libgfortran_version= v " 5"  ),
32+         Platform (" aarch64"  , " macos"  ; libgfortran_version= v " 5"  ),
33+     ]
34+     @test  expand_gfortran_versions ([Platform (" x86_64"  , " macos"  ), Platform (" aarch64"  , " macos"  )]; old_abis= true ) ==  [
2435        Platform (" x86_64"  ,  " macos"  ; libgfortran_version= v " 3"  ),
2536        Platform (" x86_64"  ,  " macos"  ; libgfortran_version= v " 4"  ),
2637        Platform (" x86_64"  ,  " macos"  ; libgfortran_version= v " 5"  ),
@@ -34,6 +45,9 @@ using BinaryBuilderBase: RustBuild, CompilerShard
3445
3546    #  expand_cxxstring_abis
3647    @test  expand_cxxstring_abis (Platform (" x86_64"  , " linux"  ; libc= " musl"  )) ==  [
48+         Platform (" x86_64"  , " linux"  , libc= " musl"  , cxxstring_abi= " cxx11"  ),
49+     ]
50+     @test  expand_cxxstring_abis (Platform (" x86_64"  , " linux"  ; libc= " musl"  ); old_abis= true ) ==  [
3751        Platform (" x86_64"  , " linux"  , libc= " musl"  , cxxstring_abi= " cxx03"  ),
3852        Platform (" x86_64"  , " linux"  , libc= " musl"  , cxxstring_abi= " cxx11"  ),
3953    ]
@@ -42,12 +56,20 @@ using BinaryBuilderBase: RustBuild, CompilerShard
4256        Platform (" x86_64"  , " macos"  ),
4357    ]
4458    @test  expand_cxxstring_abis ([Platform (" x86_64"  , " freebsd"  ), Platform (" x86_64"  , " macos"  )]; skip= _-> false ) ==  [
59+         Platform (" x86_64"  , " freebsd"  ; cxxstring_abi= " cxx11"  ),
60+         Platform (" x86_64"  , " macos"  ; cxxstring_abi= " cxx11"  ),
61+     ]
62+     @test  expand_cxxstring_abis ([Platform (" x86_64"  , " freebsd"  ), Platform (" x86_64"  , " macos"  )]; skip= _-> false , old_abis= true ) ==  [
4563        Platform (" x86_64"  , " freebsd"  ; cxxstring_abi= " cxx03"  ),
4664        Platform (" x86_64"  , " freebsd"  ; cxxstring_abi= " cxx11"  ),
4765        Platform (" x86_64"  , " macos"  ; cxxstring_abi= " cxx03"  ),
4866        Platform (" x86_64"  , " macos"  ; cxxstring_abi= " cxx11"  ),
4967    ]
5068    @test  expand_cxxstring_abis ([Platform (" x86_64"  , " freebsd"  ), Platform (" x86_64"  , " linux"  )]; skip= Sys. islinux) ==  [
69+         Platform (" x86_64"  , " freebsd"  ; cxxstring_abi= " cxx11"  ),
70+         Platform (" x86_64"  , " linux"  ),
71+     ]
72+     @test  expand_cxxstring_abis ([Platform (" x86_64"  , " freebsd"  ), Platform (" x86_64"  , " linux"  )]; skip= Sys. islinux, old_abis= true ) ==  [
5173        Platform (" x86_64"  , " freebsd"  ; cxxstring_abi= " cxx03"  ),
5274        Platform (" x86_64"  , " freebsd"  ; cxxstring_abi= " cxx11"  ),
5375        Platform (" x86_64"  , " linux"  ),
0 commit comments